summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-03-29 00:52:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-03-29 00:52:20 +0000
commit89206cfca46de78a138eb7d5bde7dccdbc7c02ce (patch)
tree0941f140f0a16a21ffa5e9216fdf47e9f46db66f
parentcb8e1f16eea9ca070af72dd285c40d7d8b2d8c24 (diff)
downloadphp-git-89206cfca46de78a138eb7d5bde7dccdbc7c02ce.tar.gz
MFH: Fixed bug #27731 (error_reporting() inside @ block fails to set
error_reporting level).
-rw-r--r--NEWS2
-rw-r--r--tests/lang/bug27731.phpt10
2 files changed, 12 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 1dfca4c398..8a3274a849 100644
--- 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
index 0000000000..0c72d43504
--- /dev/null
+++ b/tests/lang/bug27731.phpt
@@ -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)