summaryrefslogtreecommitdiff
path: root/ext/spl/tests/class_uses_variation1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/class_uses_variation1.phpt')
-rw-r--r--ext/spl/tests/class_uses_variation1.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/class_uses_variation1.phpt b/ext/spl/tests/class_uses_variation1.phpt
index be6aa9ac7f..538c9257e7 100644
--- a/ext/spl/tests/class_uses_variation1.phpt
+++ b/ext/spl/tests/class_uses_variation1.phpt
@@ -12,8 +12,8 @@ echo "*** Testing class_uses() : variation ***\n";
// Define error handler
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
- if (error_reporting() != 0) {
+function test_error_handler($err_no, $err_msg, $filename, $linenum) {
+ if (error_reporting() & $err_no) {
// report non-silenced errors
echo "Error: $err_no - $err_msg, $filename($linenum)\n";
}