From d9cdebd8fa7195fa14b3ec8868c3ed1145e06b7e Mon Sep 17 00:00:00 2001 From: walkor Date: Tue, 7 Feb 2017 23:06:31 +0800 Subject: [PATCH] fix #73 --- src/Engine/Parser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Engine/Parser.php b/src/Engine/Parser.php index 0552ca4..74913e4 100644 --- a/src/Engine/Parser.php +++ b/src/Engine/Parser.php @@ -181,13 +181,13 @@ public static function decodePayload($data, $binaryType = null) return self::$err; } - $msg = substr($data, $i + 1, $n); + $msg = substr($data, $i + 1/*, $n*/); - if ($length != strlen($msg)) + /*if ($length != strlen($msg)) { // parser error - ignoring payload return self::$err; - } + }*/ if (isset($msg[0])) {