Download src/php/php-src/Zend/tests/exceptions/bug51394.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug51394.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug51394.phpt
-
curl -L -o bug51394.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug51394.phpt
433 Bytes
| --TEST-- | |
| Bug #51394 (Error line reported incorrectly if error handler throws an exception) | |
| --INI-- | |
| error_reporting=-1 | |
| --FILE-- | |
| function eh() | |
| { | |
| throw new Exception("error!"); | |
| return false; | |
| } | |
| set_error_handler("eh"); | |
| $a = $empty($b); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Exception: error! in %sbug51394.php:%d | |
| Stack trace: | |
| #0 %s(%d): eh(2, 'Undefined varia...', '%s', %d) | |
| #1 {main} | |
| thrown in %sbug51394.php on line %d | |