Download src/php/php-src/Zend/tests/exceptions/exception_007.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 674 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_007.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/exception_007.phpt
-
curl -L -o exception_007.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_007.phpt
674 Bytes
| --TEST-- | |
| Setting previous exception | |
| --FILE-- | |
| try { | |
| try { | |
| throw new Exception("First", 1, new Exception("Another", 0, NULL)); | |
| } | |
| catch (Exception $e) { | |
| throw new Exception("Second", 2, $e); | |
| } | |
| } | |
| catch (Exception $e) { | |
| throw new Exception("Third", 3, $e); | |
| } | |
| ===DONE=== | |
| --EXPECTF-- | |
| Fatal error: Uncaught Exception: Another in %sexception_007.php:%d | |
| Stack trace: | |
| #0 {main} | |
| Next Exception: First in %sexception_007.php:%d | |
| Stack trace: | |
| #0 {main} | |
| Next Exception: Second in %sexception_007.php:%d | |
| Stack trace: | |
| #0 {main} | |
| Next Exception: Third in %sexception_007.php:%d | |
| Stack trace: | |
| #0 {main} | |
| thrown in %sexception_007.php on line %d | |