summaryrefslogtreecommitdiff
path: root/tests
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 /tests
parentcb8e1f16eea9ca070af72dd285c40d7d8b2d8c24 (diff)
downloadphp-git-89206cfca46de78a138eb7d5bde7dccdbc7c02ce.tar.gz
MFH: Fixed bug #27731 (error_reporting() inside @ block fails to set
error_reporting level).
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/bug27731.phpt10
1 files changed, 10 insertions, 0 deletions
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)