I have the following line
$input = socket_read($spawn, 512, 0) or die ("Something");
I can send anything to the read buffer and it works fine until i send a "10" to the socket.
At that point it closes.
Why would it do this? I have tried the PHP_BINARY_READ flag and the PHP_NORMAL_READ flag and neither work. The PHP_NORMAL_READ is worse.