#44955 [Asn->Csd]: socket array keys not working as expected
| From: | felipe@php.net | Date: | Tue, 15 Jul 2008 11:22:01 +0000 |
| Subject: | #44955 [Asn->Csd]: socket array keys not working as expected | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126752@lists.php.net to get a copy of this message | ||
ID: 44955
Updated by: felipe@php.net
Reported By: fidojones at fidojones dot com
-Status: Assigned
+Status: Closed
Bug Type: Sockets related
Operating System: Linux
PHP Version: 5.2.6
Assigned To: felipe
New Comment:
Ok, sorry!
Thanks fidojones for the feedbacks.
Previous Comments:
------------------------------------------------------------------------
[2008-07-15 06:44:57] derick@php.net
Changes in behavior in minor versions are bugs.
------------------------------------------------------------------------
[2008-07-14 21:45:44] fidojones at fidojones dot com
Aparently socket_select acts completely diferent as past versions.
Nanoweb server has been fixed to work with this versions:
old version in nanoweb before 5.2.6:
$ns=socket_select($lnset, $write=NULL, $except=NULL, 1);
if ($ns) {
if ($lnset[0]==$children_sck) {
new version in nanoweb from 5.2.6:
$ns=socket_select($lnset, $write=NULL, $except=NULL, 1);
if ($ns) foreach ($lnset as $lnact) {
if ($lnact==$children_sck) {
So I think it's not a bug, but acts different as older versions.
------------------------------------------------------------------------
[2008-07-14 21:29:57] jani@php.net
Felipe, you break -> you fix. Or revert the patch you applied that
obviously causes the problem.
------------------------------------------------------------------------
[2008-05-09 18:12:36] fidojones at fidojones dot com
I'm using the socket.c file in ext/socket/ from php 5.2.5 in php 5.2.6
and all is working fine. And the only diff in socket.c is the patch
http://bugs.php.net/bug.php?id=44197 ,so explain
me if not related with
this patch, why is working perfect? if I only overwrite the socket.c
file...
You should test the script and say me if you see the execution
diference and I encourage to try http://nanoweb.si.kz/ that has
been
working with all php versions from 4 to 5.2.5 and only fails with php
5.2.6.
------------------------------------------------------------------------
[2008-05-09 17:50:12] felipe@php.net
The problem isn't related with the patch... It just fixed a problem in
socket_select(). Your script doesn't use it.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44955
--
Edit this bug report at http://bugs.php.net/?id=44955&edit=1