I'll have to do a bit of testing, myself, but looking at the code in
the SocketServer.class.inc file at line 127, I think we can get this
one licked.
The first thing that would fix the PHP Notice spamming would be to add
~E_NOTICE to your error reporting line in the php.ini file for the CLI
interface (should be at /etc/php5/cli/php.ini). This obviously just
affects the reporting of the notice and not the cause.
Without testing, I would venture to say that the easiest fix would be
to change the line that reads:
if (is_resource($this->clients[$i]->socket))
to:
if (isset($this->clients[$i] && is_resource($this->clients[$i]-
>socket))
That should prevent the code from trying to test for the variable
"socket" at an undefined array index.
If you'd like to try either or both of these (preferably the latter
first), please let me know if it works for you. I'll try to do some
testing and get a fix in in the next few days.
Thanks!
- John