diff options
author | Marcus Boerger <helly@php.net> | 2003-03-03 00:58:15 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-03-03 00:58:15 +0000 |
commit | acef51e677fd0aa837444c0b2ac289653a987628 (patch) | |
tree | 21c8ce22eebaa89cafdafccb4b3e4f8ded2f829c | |
parent | 3ac6bb50173d363bd1067e14743c10c3d5a279cf (diff) | |
download | php-git-acef51e677fd0aa837444c0b2ac289653a987628.tar.gz |
(re)check in non ZendOptimizer version of test
-rw-r--r-- | tests/run-test/test008a.phpt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/run-test/test008a.phpt b/tests/run-test/test008a.phpt new file mode 100644 index 0000000000..04a3c71168 --- /dev/null +++ b/tests/run-test/test008a.phpt @@ -0,0 +1,32 @@ +--TEST-- +Error message handling (without ZendOptimizer) +--SKIPIF-- +<?php +if (extension_loaded("Zend Optimizer")) die("skip Zend Optimizer is loaded"); +?> +--FILE-- +<?php +// If this test fails ask the developers of run-test.php +// +// We check the general ini settings which affect error handling +// and than verify if a message is given by a division by zero. +// EXPECTF is used here since the error format may change but ut +// should always contain 'Division by zero'. +var_dump(ini_get('display_errors')); +var_dump(ini_get('error_reporting')); +var_dump(ini_get('log_errors')); +var_dump(ini_get('track_errors')); +ini_set('display_errors', 0); +var_dump(ini_get('display_errors')); +var_dump($php_errormsg); +$error = 1 / 0; +var_dump($php_errormsg); +?> +--EXPECTF-- +string(1) "1" +string(4) "2047" +string(1) "0" +string(1) "1" +string(1) "0" +NULL +string(%d) "%sivision by zer%s" |