summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/chmod_variation3.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-11-26 21:20:03 +0100
committerJoe Watkins <krakjoe@php.net>2019-01-31 07:11:05 +0100
commitabd36289e26cc0365e82373699aba4c1ffff464d (patch)
tree1c94078f70ba7a8a4f098236e780ee9de9136179 /ext/standard/tests/file/chmod_variation3.phpt
parent25dc5f18e44686836b18851baeb348c86eeede7c (diff)
downloadphp-git-abd36289e26cc0365e82373699aba4c1ffff464d.tar.gz
Don't silence fatal errors with @
Diffstat (limited to 'ext/standard/tests/file/chmod_variation3.phpt')
-rw-r--r--ext/standard/tests/file/chmod_variation3.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/file/chmod_variation3.phpt b/ext/standard/tests/file/chmod_variation3.phpt
index bc6f0dc860..dcb7fc3bbb 100644
--- a/ext/standard/tests/file/chmod_variation3.phpt
+++ b/ext/standard/tests/file/chmod_variation3.phpt
@@ -12,7 +12,7 @@ echo "*** Testing chmod() : usage variation ***\n";
// Define error handler
function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
- if (error_reporting() != 0) {
+ if (error_reporting() & $err_no) {
// report non-silenced errors
echo "Error: $err_no - $err_msg, $filename($linenum)\n";
}