|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesquick-fix-abstract-ns-xp_socket.c.patch (last revision 2013-03-01 09:02 UTC by a dot yamanoi at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-02 09:16 UTC] mike@php.net
[2014-04-02 09:16 UTC] mike@php.net
-Status: Open
+Status: Closed
[2014-04-03 08:02 UTC] ab@php.net
[2014-04-03 08:04 UTC] ab@php.net
[2014-04-10 04:47 UTC] tyrael@php.net
[2014-10-07 23:15 UTC] stas@php.net
[2014-10-07 23:26 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Description: ------------ stream_socket_server("unix://\x00/foo/bar") doesn't bind a UNIX domain socket to the abstract namespace correctly. The actual namespace string seems to be padded right with "\x00"s. e.g. "\x00/foo/bar\x00\x00...\x00" So the stream_socket_client("unix://\x00/foo/bar") test below fails. According to Bug #44127, stream_socket_client() works fine now. The problem occurs in PHP 5.4.12 and the latest 5.4 snap(Built on: Mar 01, 2013 02:30 UTC). Test script: --------------- <?php $server = stream_socket_server("unix://\x00/MyBindName"); $client = stream_socket_client("unix://\x00/MyBindName"); if ($client) { echo "ok\n"; } ?> Expected result: ---------------- ok Actual result: -------------- PHP Warning: stream_socket_client(): unable to connect to unix://\0/MyBindName (Connection refused) in ...