ID: 20922 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: linux debian latest unstable PHP Version: 4.2.3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-12-10 07:40:16] [EMAIL PROTECTED] $r = array($network->_connection); if (socket_select($r,$w=NULL,$e=NULL,0)===false) { echo "socket_select failed: reason: " . socket_strerror(socket_last_error()) . "\n"; } else { ... code... } somehow neither part of the if/else case gets executed for me, socket_select just seems to "hang".. the $network->_connection is valid (no errors in connecting) and non blocking (no errors here either).. the code used to work fine for quite some time, also on 4.2.3 now i don't have a clue what goes wrong -> if i send data trough the socket i actually get it on the other side (the application here would be an irc bot, so i see him join the network and then timeout since it hangs on socket_select) the code for it is on www.sf.net/projects/phpinfobot/ in the cvs, if somebody wants to test it, the important files should be /infobot.php /include/system/network.php /include/system/irc.php the rest is pretty much non important ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20922&edit=1