xref: /PHP-8.0/Zend/tests/bug29890.phpt (revision 2f1f3495)
1--TEST--
2Bug #29890 (crash if error handler fails)
3--FILE--
4<?php
5function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine) {
6echo "error :".$fErrStr."\n";
7}
8
9set_time_limit(5);
10
11error_reporting(E_ALL);
12
13set_error_handler("customErrorHandler");
14
15define("TEST",2);
16
17//should return a notice that the constant is already defined
18
19define("TEST",3);
20
21?>
22--EXPECT--
23error :Constant TEST already defined
24