diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run-test/test005.phpt | 5 | ||||
-rw-r--r-- | tests/run-test/test006.phpt | 4 | ||||
-rw-r--r-- | tests/run-test/test008a.phpt | 5 |
3 files changed, 8 insertions, 6 deletions
diff --git a/tests/run-test/test005.phpt b/tests/run-test/test005.phpt index 1413a198a6..5dcb650444 100644 --- a/tests/run-test/test005.phpt +++ b/tests/run-test/test005.phpt @@ -19,7 +19,8 @@ var_dump(ini_get('track_errors')); ini_set('display_errors', 0); var_dump(ini_get('display_errors')); var_dump($php_errormsg); -ini_set("zend.assertions", -1); +$zero = 0; +$error = 1 / $zero; var_dump($php_errormsg); ?> --EXPECTF-- @@ -29,4 +30,4 @@ string(1) "0" string(1) "1" string(1) "0" NULL -string(%d) "%senabled or disabled%s" +string(%d) "%sivision by zer%s" diff --git a/tests/run-test/test006.phpt b/tests/run-test/test006.phpt index 0ab1092a72..4dca66a4f7 100644 --- a/tests/run-test/test006.phpt +++ b/tests/run-test/test006.phpt @@ -3,7 +3,7 @@ Error messages are shown --FILE-- <?php // If this test fails ask the developers of run-test.php -ini_set("zend.assertions", -1); +$error = 1 / 0; ?> --EXPECTREGEX-- -.*enabled or disabled.* +.*Division by zero.* diff --git a/tests/run-test/test008a.phpt b/tests/run-test/test008a.phpt index 954f899aca..ff2a93be0f 100644 --- a/tests/run-test/test008a.phpt +++ b/tests/run-test/test008a.phpt @@ -19,7 +19,8 @@ var_dump(ini_get('track_errors')); ini_set('display_errors', 0); var_dump(ini_get('display_errors')); var_dump($php_errormsg); -ini_set('zend.assertions', -1); +$zero = 0; +$error = 1 / $zero; var_dump($php_errormsg); ?> --EXPECTF-- @@ -29,4 +30,4 @@ string(1) "0" string(1) "1" string(1) "0" NULL -string(%d) "%senabled or disabled%s" +string(%d) "%sivision by zer%s" |