Skip to content

Commit

Permalink
Update TcpConnection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored May 22, 2018
1 parent 375ca21 commit 9dcbee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Connection/TcpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,9 @@ public function baseRead($socket, $check_eof = true)
}
} else {
// Get current package length.
set_error_handler(null);
set_error_handler(function($code, $msg, $file, $line){
echo "$msg in file $file on line $line\n";
});
$this->_currentPackageLength = $parser::input($this->_recvBuffer, $this);
restore_error_handler();
// The packet length is unknown.
Expand Down

0 comments on commit 9dcbee3

Please sign in to comment.