|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-06-19 04:34 UTC] laruence@php.net
[2016-06-19 04:34 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2016-06-22 05:58 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 22:00:01 2025 UTC |
Description: ------------ There is a regression between 5.5 and 5.6. When using `stream_socket_recvfrom` or `stream_socket_sendto`, we can use the remote address. When we do, a segfault happens. When we avoid using it, everything is normal. Test script: --------------- // server.php <?php $server = stream_socket_server('tcp://127.0.0.1:1234'); $client = stream_socket_accept($server); $message = stream_socket_recvfrom($client, 6, 0, $address); var_dump($message); fclose($client); fclose($server); // client.php <?php $client = stream_socket_client('tcp://127.0.0.1:1234'); stream_socket_sendto($client, 'foobar'); // shell Run `server.php` and then `client.php` side-by-side. Expected result: ---------------- string(6) "foobar" Actual result: -------------- segmentation fault!