Download src/php/php-src/Zend/tests/exceptions/bug33802.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug33802.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug33802.phpt
-
curl -L -o bug33802.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug33802.phpt
378 Bytes
| --TEST-- | |
| Bug #33802 (throw Exception in error handler causes crash) | |
| --FILE-- | |
| set_error_handler('errorHandler', E_USER_WARNING); | |
| try { | |
| test(); | |
| } catch(Exception $e){ | |
| } | |
| restore_error_handler(); | |
| function test() { | |
| trigger_error("error", E_USER_WARNING); | |
| } | |
| function errorHandler($errno, $errstr, $errfile, $errline) { | |
| throw new Exception(); | |
| } | |
| ok | |
| --EXPECT-- | |
| ok | |