Test: /ext/standard/tests/streams/bug74556.phpt - Version 7.1.10        

Bug #74556 stream_socket_get_name returns \0 string instead of false
Submitted: 2017-05-08 15:32:19 Modified: 2017-12-21 17:53:37
From: cpuidle Assigned: pollita
Status: Re-Opened Package: Streams related
PHP Version: 7.1.7 OS: macOS

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

Count Diff
46 (88%)
002+ string(15) "[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]"
002- bool(false)
4 (8%)
001+ Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in %s/bug74556.php on line 4
002+
003+ Notice: stream_socket_client(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in %s/bug74556.php on line 5
1 (2%)
002+ string(105) "[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]"
002- bool(false)
1 (2%)
001+ Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 104 bytes and was truncated in %s/bug74556.php on line 4
002+
003+ Notice: stream_socket_client(): socket path exceeded the maximum allowed length of 104 bytes and was truncated in %s/bug74556.php on line 5
002- bool(false)
005+ string(15) "[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]"