|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-06-09 14:02 UTC] wzaccone at telcordia dot com
we upgraded our application from php 4.1.2 to 4.3.2 and are testing. and found the following code no longer works:
if (@socket_select($socketsCopy, $w = NULL, $e = NULL, $tv = NULL) !== FALSE){
foreach($socketsCopy as $sock){
The socket_select call appears to be never returning with php 4.3.2.. code worked correctly with 4.1.2.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
function readMsgsFromHosts($sockets){ set_time_limit(0); $numSockets = count($sockets); $keys = array_keys($sockets); $socketsCopy = Array(); foreach ($keys as $key){ $socketsCopy[$key] = $sockets[$key]; } if (@socket_select($socketsCopy, $w = NULL, $e = NULL, $tv = NULL) !== FALSE){ foreach($socketsCopy as $sock){ $string = fread($sock, $readAmount);