Download src/php/php-src/Zend/tests/exceptions/bug76025.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug76025.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug76025.phpt
-
curl -L -o bug76025.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug76025.phpt
460 Bytes
| --TEST-- | |
| Bug #76025 (Segfault while throwing exception in error_handler) | |
| --FILE-- | |
| function handleError($errno, $errstr, $errfile, $errline) { | |
| $exception = new exception("blah"); | |
| throw $exception; | |
| } | |
| set_error_handler('handleError', E_ALL); | |
| $c = $b[$a]; | |
| --EXPECTF-- | |
| Fatal error: Uncaught Exception: blah in %sbug76025.php:%d | |
| Stack trace: | |
| #0 %s(%d): handleError(2, 'Undefined varia...', '%s', %d) | |
| #1 {main} | |
| thrown in %sbug76025.php on line %d | |