]> granicus.if.org Git - php/commitdiff
- Made error handler not output anything if error was not in error_reporting() mask
authorTimm Friebe <thekid@php.net>
Sun, 6 Feb 2005 14:08:11 +0000 (14:08 +0000)
committerTimm Friebe <thekid@php.net>
Sun, 6 Feb 2005 14:08:11 +0000 (14:08 +0000)
ext/sybase_ct/tests/index.php

index e7c8e6aacdf22cecb046247f478af922a5340d53..47202efa3b524a86db629599ec161ba04ea4a03d 100644 (file)
@@ -80,6 +80,7 @@
         E_WARNING   => 'Warning'
       );
       
+      if (!(error_reporting() & $errno)) return;
       printf(
         "\n%s: %s in %s on line %d\n", 
         $names[$errno],