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

Commit 9c7c98e

Browse files
author
johngrafis
committed
Update Runner.php
At HttpService.php file at check function, you are silence an fsockopen. Now the silence is not working because of the errorHandler. By adding the check for "error_reporting", you can check if an error is silenced, if it is not silenced it will throw an ErrorException.
1 parent 2ae657d commit 9c7c98e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ZendDiagnostics/Runner/Runner.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ protected function startErrorHandler()
395395

396396
public function errorHandler($errno, $errstr = '', $errfile = '', $errline = 0)
397397
{
398-
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
398+
if (error_reporting() !== 0) {
399+
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
400+
}
399401
}
400402

401403
protected function stopErrorHandler()

0 commit comments

Comments
 (0)