I have a function in my class that uses the socket_select () function, and I noticed that it throws this warning:
Strict Standards: *Only variables should be passed by reference*
This is how I use it, and yes, I read "Example # 1 using NULL with socket_select ()" in the PHP Manual
$read = array($this->socket);
$write = NULL;
$except = NULL;
socket_select($read, $write, $except, 0, $this->socket_timeout);
This leads to a lot of spam errors when calling a function inside a while loop. Of course, I can suppress E_STRICT errors, but I would like to know what the exact problem is here. My PHP Version 5.3.5
source
share