Test: /ext/standard/tests/network/setcookie_error.phpt - Version 7.4.20    

There are 3 different diffs reported by users for this test.

Count Diff
12 (86%)
012+ array(3) { 012- array(4) { 014- string(%d) "X-Powered-By: PHP/%s" 015- [1]=> 015+ [1]=> 016+ string(24) "Set-Cookie: name2=value2" 018- string(24) "Set-Cookie: name2=value2" 019- [3]=>
1 (7%)
001+ Mon Jun 21 02:28:41 2021 (3054166576): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: unknown: Success (0) 001- Warning: setcookie(): Unrecognized key 'unknown_key' found in the options array in %s 002- 003- Warning: setcookie(): No valid options were found in the given array in %s 004- 005- Warning: setcookie(): Numeric key found in the options array in %s 006- 007- Warning: setcookie(): No valid options were found in the given array in %s 008- 009- Warning: setcookie(): Unrecognized key 'foo' found in the options array in %s 010- 011- Warning: setcookie(): Cannot pass arguments after the options array in %s 012- array(4) { 013- [0]=> 014- string(%d) "X-Powered-By: PHP/%s" 015- [1]=> 016- string(22) "Set-Cookie: name=value" 017- [2]=> 018- string(24) "Set-Cookie: name2=value2" 019- [3]=> 020- string(37) "Set-Cookie: name3=value3; path=/path/" 021- }
1 (7%)
001+ Mon Jun 21 02:07:55 2021 (3054305840): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: unknown: Success (0) 001- Warning: setcookie(): Unrecognized key 'unknown_key' found in the options array in %s 002- 003- Warning: setcookie(): No valid options were found in the given array in %s 004- 005- Warning: setcookie(): Numeric key found in the options array in %s 006- 007- Warning: setcookie(): No valid options were found in the given array in %s 008- 009- Warning: setcookie(): Unrecognized key 'foo' found in the options array in %s 010- 011- Warning: setcookie(): Cannot pass arguments after the options array in %s 012- array(4) { 013- [0]=> 014- string(%d) "X-Powered-By: PHP/%s" 015- [1]=> 016- string(22) "Set-Cookie: name=value" 017- [2]=> 018- string(24) "Set-Cookie: name2=value2" 019- [3]=> 020- string(37) "Set-Cookie: name3=value3; path=/path/" 021- }