From:             w at ff dot st
Operating system: Windows
PHP version:      4.3.2
PHP Bug Type:     Sockets related
Bug description:  socket_select only selects first socket

Description:
------------
I'm writing "application" scripts with PHP (such as a FTP server). Usually
I run them under Linux.
I tried to run a script on windows, and after some debugging, I found that
socket_select() was returning only when the first socket of the read array
has data.

Under linux, it works as expected, but under windows, I had to find a way
to stop using 100% CPU (usleep not available & socket_select returning
instantly if I give all null socket arrays and a non-null timeout).

I'll try with the stream_select() function. It won't change that
socket_select() is bogus, that's why I'm posting that.


-- 
Edit bug report at http://bugs.php.net/?id=25104&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25104&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25104&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25104&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25104&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25104&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25104&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25104&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25104&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25104&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25104&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25104&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25104&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25104&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25104&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25104&r=gnused

Reply via email to