Skip to content

Commit 661b445

Browse files
committed
Updated test for operands
1 parent 7d2419f commit 661b445

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Zend/tests/runtime_compile_time_binary_operands.phpt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,7 @@ if (getenv("SKIP_SLOW_TESTS")) die('skip slow test');
88
?>
99
--FILE--
1010
<?php
11-
$deprecated = 0;
12-
set_error_handler(function ($errno, $errstr, $errfile, $errline) use (
13-
&$deprecated
14-
) {
15-
if ($errno == E_DEPRECATED) {
16-
++$deprecated;
17-
return true;
18-
}
19-
return false;
20-
});
11+
error_reporting(E_ALL ^ E_DEPRECATED);
2112

2213
$binaryOperators = [
2314
"==",
@@ -188,8 +179,6 @@ if($c === 0) {
188179
} else {
189180
echo "Failed: $f\n";
190181
}
191-
192-
echo "Deprecated: $deprecated\n";
193182
?>
194183
--CLEAN--
195184
<?php
@@ -198,4 +187,3 @@ $fl = __DIR__ . DIRECTORY_SEPARATOR . 'compare_binary_operands_temp.php';
198187
?>
199188
--EXPECT--
200189
Failed: 0
201-
Deprecated: 8532

0 commit comments

Comments
 (0)