error fixes

This commit is contained in:
kremsy
2014-03-13 18:47:40 +01:00
committed by Steffen Schröder
parent d3cc9db29c
commit 79a771583e
7 changed files with 66 additions and 33 deletions

View File

@ -215,7 +215,7 @@ class Client
while(strlen($contents) < 8){
$newContent = fread($this->socket, 8 - strlen($contents));
//var_dump($contents, $newContent, strlen($contents));
if(strlen($newContent) == 0){
if(strlen($newContent) === false){
var_dump("deb1 transport error" . $contents);
throw new FatalException('deb1 transport error - connection interrupted!' . $contents, FatalException::INTERRUPTED);
}