Download src/php/php-src/Zend/tests/exceptions/bug64135.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug64135.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug64135.phpt
-
curl -L -o bug64135.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug64135.phpt
341 Bytes
| --TEST-- | |
| Bug #64135 (Exceptions from set_error_handler are not always propagated) | |
| --FILE-- | |
| function exception_error_handler() { | |
| throw new Exception(); | |
| } | |
| set_error_handler("exception_error_handler"); | |
| try { | |
| $undefined->undefined(); | |
| } catch(Throwable $e) { | |
| echo "Exception is thrown"; | |
| } | |
| --EXPECT-- | |
| Exception is thrown | |