]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #27731 (error_reporting() inside @ block fails to set
authorIlia Alshanetsky <iliaa@php.net>
Mon, 29 Mar 2004 00:52:20 +0000 (00:52 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 29 Mar 2004 00:52:20 +0000 (00:52 +0000)
error_reporting level).

NEWS
tests/lang/bug27731.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 1dfca4c398d58b07bacd657bb234f28ee894a979..8a3274a84936df2b8f23e5d3169c62616dcab196 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2004, Version 4.3.6
 - Fixed bug #27732 (Fixed compilation bug inside php_sab_info.h). (Ilia)
+- Fixed bug #27731 (error_reporting() inside @ block fails to set
+  error_reporting level). (Ilia)
 - Fixed bug #27719 (mktime issues on and around DST changeover). (Rasmus)
 - Fixed bug #27717 (Test Failures when compiled on 64-bit mode). (Ard, Derick)
 - Fixed bug #27687 (Bug Adding Default Charset to 'text/*' Content-Type 
diff --git a/tests/lang/bug27731.phpt b/tests/lang/bug27731.phpt
new file mode 100644 (file)
index 0000000..0c72d43
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+Bug #27731 (error_reporing() call inside @ block does not work correctly)
+--FILE--
+<?php
+       error_reporting(E_ALL ^ E_NOTICE);
+       @error_reporting(0);
+       var_dump(error_reporting());
+?>
+--EXPECT--
+int(0)