PHP Classes

some problems after upgrading to PHP 5.4.12

Recommend this page to a friend!

      Socket Server  >  All threads  >  some problems after upgrading to PHP...  >  (Un) Subscribe thread alerts  
Subject:some problems after upgrading to PHP...
Summary:SocketServer not functional
Messages:1
Author:Louis
Date:2013-03-25 12:22:34
 

 


  1. some problems after upgrading to PHP...   Reply   Report abuse  
Picture of Louis Louis - 2013-03-25 12:22:34
Hi,

First: In the previous version I sometimes got the error:
unable to select [0]: An operation was attempted on something that is not a socket.
This was not really a problem, because the program just restarted again.

When upgrading to PHP 5.4.12 I had to change the following line
PHP Strict Standards: Only variables should be passed by reference

So I changed this line
(false === socket_select($active, $w = null, $e = null, null))

to

$w = null;
$e = null;
(false === socket_select($active, $w, $e, null))

Ok, so now the actual problem.

After a while, the SocketServer is accepting new connection.
But it isn't doing anything with it. It keeps the connection. But sending stop, halt or exit doesn't do anything.
I also get no errors in my log. And currently I'm writing some variables to a seperate logfile, to see if there is something with the connid.

I have no clue what to do next.

Do you have some suggestions?







 
For more information send a message to info at phpclasses dot org.