Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 5b781f4

Browse files
committed
Merge pull request zendframework/zendframework#2210 from weierophinney/hotfix/remove-suppression-operator
Get rid of error suppression

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Adapter/PhpCode.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public function unserialize($code)
4444
{
4545
ErrorHandler::start(E_ALL);
4646
$ret = null;
47+
// This suppression is due to the fact that the ErrorHandler cannot
48+
// catch syntax errors, and is intentionally left in place.
4749
$eval = @eval('$ret=' . $code . ';');
4850
$err = ErrorHandler::stop();
4951

@@ -62,4 +64,4 @@ public function unserialize($code)
6264

6365
return $ret;
6466
}
65-
}
67+
}

0 commit comments

Comments
 (0)