]> granicus.if.org Git - php/commit
Bugfix #74556 stream_socket_get_name() returns empty string
authorSara Golemon <pollita@php.net>
Sun, 28 May 2017 14:23:57 +0000 (07:23 -0700)
committerSara Golemon <pollita@php.net>
Sun, 28 May 2017 15:48:18 +0000 (08:48 -0700)
commit8dcfec9789b4792f7b6b25673274b74bae71b512
tree25de45e564ee561de0b87cbfbe8d8e895e390e6f
parent6d2d0bbda7a406000ccb8a2dff86ddfe1ce467d5
Bugfix #74556 stream_socket_get_name() returns empty string

The original bug report had it returning '\0',
but with a fix to abstract name handling (6d2d0bbda7)
it now actually returns ''.

Neither of these are good, as per unix(7)
an empty socket name indicates an unbound name
and "should not be inspected".
NEWS
ext/standard/streamsfuncs.c
ext/standard/tests/streams/bug74556.phpt [new file with mode: 0644]