From d556917c551b375ccec60230f3a73c51460c83b6 Mon Sep 17 00:00:00 2001 From: zsgsdesign Date: Thu, 1 Apr 2021 22:39:16 +0800 Subject: [PATCH] update sutting current MOSS --- .gitignore | 3 ++- src/MOSS.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3270494..ac5d10c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /vendor/ /composer.lock /.vscode -/tests/report \ No newline at end of file +/tests/report +/tests/exec.php \ No newline at end of file diff --git a/src/MOSS.php b/src/MOSS.php index a19c3b6..b2f6e72 100644 --- a/src/MOSS.php +++ b/src/MOSS.php @@ -205,7 +205,7 @@ public function send() fwrite($socket, "end\n"); fclose($socket); if($read===false) throw new Exception("Unexpected Error", -1); - return (int)explode('results/', $read)[1]; + return trim(explode('results/', $read)[1]); } }