Skip to content

Commit 7942845

Browse files
committed
remove error debugging
1 parent 0cf1e57 commit 7942845

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Communication/Socket/Socket.php

-7
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ public function receiveMessages(): Generator
5353
{
5454
foreach ($this->receiveRaw() as $data) {
5555
yield unserialize($data);
56-
$error = error_get_last();
57-
if ($error && str_starts_with($error["message"], "unserialize(): Error at offset")) {
58-
fwrite(STDERR, getmypid() . ": Unserialize error: " . $error["message"] . PHP_EOL);
59-
fwrite(STDERR, getmypid() . ": Unserialize length: " . strlen($data) . PHP_EOL);
60-
fwrite(STDERR, getmypid() . ": Unserialize data: " . $data . PHP_EOL);
61-
error_clear_last();
62-
}
6356
}
6457
}
6558

0 commit comments

Comments
 (0)