|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-21 15:27 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 01:00:01 2025 UTC |
Description: ------------ When I use the optional peername parameter in stream_socket_accept() the script segfaults. Everything works fine when I don't use this parameter. The segfault occurs immediately when I call the function, before any connection with a client can be established. Reproduce code: --------------- #!/usr/bin/php5 <? $server = stream_socket_server("tcp://0.0.0.0:12345"); $client = stream_socket_accept($server, 3, $peername); ?> Expected result: ---------------- nothing Actual result: -------------- Segmentation fault