segfault in stream_socket_accept (fixed before 5.0.4?)
| From: | Ron Korving | Date: | Fri, 21 Jan 2005 11:54:02 +0000 |
| Subject: | segfault in stream_socket_accept (fixed before 5.0.4?) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-14409@lists.php.net to get a copy of this message | ||
Hi,
I know this isn't the proper channel for a bugreport, but I think this
segfault will require a very simple fix and I hope this could be fixed
before 5.0.4 is released (so I'm posting this because of the time factor).
This code segfaults (PHP 5.0.3):
<?
$server = stream_socket_server("tcp://0.0.0.0:12345");
$client = stream_socket_accept($server, 3, $peername);
?>
while this doesn't:
<?
$server = stream_socket_server("tcp://0.0.0.0:12345");
$client = stream_socket_accept($server, 3);
?>
So the problem is obviously in the feedback variable "peername". I was
hoping this might be fixed before 5.0.4 rolls out.
Thanks,
Ron Korving