PHP 8.5.0 Alpha 1 available for testing

Voting

: max(nine, zero)?
(Example: nine)

The Note You're Voting On

Viorel
12 years ago
Probably you will want to use

// get a list of all the clients that have data to be read from
// if there are no clients with data, go to next iteration
if (socket_select($read, $write = NULL, $except = NULL, NULL) < 1)
continue;

instead
if (socket_select($read, $write = NULL, $except = NULL, 0) < 1)
continue;
which will hang your CPU to 100% (return immediate if nothing to be done)

<< Back to user notes page

To Top