Download src/php/php-src/sapi/phpdbg/tests/gh16181.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/phpdbg/tests/gh16181.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/phpdbg/tests/gh16181.phpt
-
curl -L -o gh16181.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/phpdbg/tests/gh16181.phpt
480 Bytes
| --TEST-- | |
| GH-16181 (phpdbg: exit in exception handler reports fatal error) | |
| --PHPDBG-- | |
| r | |
| c | |
| q | |
| --FILE-- | |
| set_exception_handler(function() { | |
| echo "exception caught\n"; | |
| die; | |
| }); | |
| echo "throwing exception\n"; | |
| throw new \Exception("oh noes"); | |
| --EXPECTF-- | |
| [Successful compilation of %s] | |
| prompt> throwing exception | |
| [Uncaught Exception in %s on line %d: oh noes] | |
| >00008: throw new \Exception("oh noes"); | |
| 00009: | |
| 00010: | |
| prompt> exception caught | |
| [Script ended normally] | |
| prompt> | |