ID:               51152
 Updated by:       [email protected]
 Reported By:      9669105 at qq dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: windows xp
 PHP Version:      5.2.13
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2010-02-26 07:35:43] 9669105 at qq dot com

Description:
------------
I am not good at english . 

I pass an array with 257 sockets to monitor for changes, a warning :
unable to select [0]:An operation was attempted on something that is
not a socket.

Why?

Reproduce code:
---------------
$i = 0;
$sockets = array();
while (true) {
        $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
        if (socket_connect($socket, '192.168.1.101', 11001)) {
                socket_set_nonblock($socket);
                $sockets[] = $socket;
                $i = $i + 1;
        } else {
                break;
        }
}
echo $i;

Expected result:
----------------
$i=257 always.

How can pass an array more than 257 sockets ?



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=51152&edit=1

Reply via email to