|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2010-02-28 16:48 UTC] jani@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 08:00:01 2025 UTC | 
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 ?