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 the snapshot, iirc, there were some fixed done which are NOT in RC2. Previous Comments: ------------------------------------------------------------------------ [2002-12-10 08:16:48] [EMAIL PROTECTED] on windows i get the "same" result with 4.3rc2, just that it hangs on socket_read() not on socket_select PHP Warning: socket_read() unable to read from socket [10035]: A non-blocking s ocket operation could not be completed immediately. in D:\respawn\phpinfobot\infobot_win.php on line 28 then it crashes and i get that microsoft "report crash" thingie.. the code related to this: if (!socket_set_nonblock($this->_connection)) { report->info("couldnt set nonblocking mode.\n\n"); } (this info line above ofcourse doesnt get printed) as for the debian, i'm not really that much into compiling & everything, and im definetly not fond of it on a "production" server.. ------------------------------------------------------------------------ [2002-12-10 07:41:32] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [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