Permalink
Browse files

- Fix #102.

  • Loading branch information...
sebastianbergmann committed Mar 1, 2007
1 parent acc06bf commit e1ffef5837972534cccb095c8531e6aaa0aba315
Showing with 4 additions and 0 deletions.
  1. +4 −0 PHPUnit/Util/ErrorHandler.php
@@ -59,6 +59,10 @@
*/
function PHPUnit_Util_ErrorHandler($errno, $errstr, $errfile, $errline)
{
+ if (!($errno & error_reporting())) {
+ return;
+ }
+
$trace = debug_backtrace();
array_shift($trace);

0 comments on commit e1ffef5

Please sign in to comment.