Download src/php/php-src/Zend/tests/exceptions/exception_001.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 685 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_001.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/exception_001.phpt
-
curl -L -o exception_001.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_001.phpt
685 Bytes
| --TEST-- | |
| Testing nested exceptions | |
| --FILE-- | |
| try { | |
| try { | |
| try { | |
| try { | |
| throw new Exception(); | |
| } catch (Exception $e) { | |
| var_dump($e->getMessage()); | |
| throw $e; | |
| } | |
| } catch (Exception $e) { | |
| var_dump($e->getMessage()); | |
| throw $e; | |
| } | |
| } catch (Exception $e) { | |
| var_dump($e->getMessage()); | |
| throw $e; | |
| } | |
| } catch (Exception $e) { | |
| var_dump($e->getMessage()); | |
| throw $e; | |
| } | |
| --EXPECTF-- | |
| string(0) "" | |
| string(0) "" | |
| string(0) "" | |
| string(0) "" | |
| Fatal error: Uncaught Exception in %s:%d | |
| Stack trace: | |
| #0 {main} | |
| thrown in %s on line %d | |