ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#44955 [Asn->Csd]: socket array keys not working as expected
by felipe other posts by this author
Jul 15 2008 4:22AM messages near this date
#44955 [NEW]: socket array keys not working as expected | #44955 [Csd->Asn]: socket array keys not working as expected
ID:               44955
 Updated by:       felipe@[...].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@[...].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@[...].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@[...].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
Thread:
Fidojones At Fidojones Dot Com
felipe
derick
Fidojones At Fidojones Dot Com
jani
Fidojones At Fidojones Dot Com
felipe
jani

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved