diff options
author | Stanislav Malyshev <stas@php.net> | 2005-05-18 18:08:02 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2005-05-18 18:08:02 +0000 |
commit | 3af3379a272b255ee9b4650f975c0b234de7f59a (patch) | |
tree | ed41bbff8a0be0c07905ea5472bffe59a6357923 | |
parent | ba7123fc9b0b8b4002b882a7846b785814612b58 (diff) | |
download | php-git-3af3379a272b255ee9b4650f975c0b234de7f59a.tar.gz |
test
-rw-r--r-- | Zend/tests/bug29890.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/bug29890.phpt b/Zend/tests/bug29890.phpt new file mode 100644 index 0000000000..32e8e1bd5d --- /dev/null +++ b/Zend/tests/bug29890.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #29890 (crash if error handler fails) +--FILE-- +<?php +function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine,&$fClass) { +echo "error :".$fErrStr."\n"; +} + +set_time_limit(5); + +error_reporting(E_ALL); + +set_error_handler("customErrorHandler"); + +define("TEST",2); + +//should return a notice that the constant is already defined + +define("TEST",3); + +?> +--EXPECT-- +error :Constant TEST already defined |