]> granicus.if.org Git - php/commitdiff
MFH: Fixed reversed condition for error reporting.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 1 Apr 2004 22:05:38 +0000 (22:05 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 1 Apr 2004 22:05:38 +0000 (22:05 +0000)
tests/lang/bug27731.phpt

index 0c72d43504ffbddb7327b164e302e1c4cfabb38a..408e4242ad5eb7cb2cd7288e2eb68e313be5ae20 100644 (file)
@@ -3,8 +3,8 @@ Bug #27731 (error_reporing() call inside @ block does not work correctly)
 --FILE--
 <?php
        error_reporting(E_ALL ^ E_NOTICE);
-       @error_reporting(0);
+       @error_reporting(E_WARNING);
        var_dump(error_reporting());
 ?>
 --EXPECT--
-int(0)
+int(2)