Download src/php/php-src/Zend/tests/exceptions/exception_008.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 657 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_008.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/exception_008.phpt
-
curl -L -o exception_008.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_008.phpt
657 Bytes
| --TEST-- | |
| Exception in __destruct while exception is pending | |
| --FILE-- | |
| class TestFirst | |
| { | |
| function __destruct() { | |
| throw new Exception("First"); | |
| } | |
| } | |
| class TestSecond | |
| { | |
| function __destruct() { | |
| throw new Exception("Second"); | |
| } | |
| } | |
| $ar = array(new TestFirst, new TestSecond); | |
| unset($ar); | |
| ===DONE=== | |
| --EXPECTF-- | |
| Fatal error: Uncaught Exception: First in %sexception_008.php:%d | |
| Stack trace: | |
| #0 %sexception_008.php(%d): TestFirst->__destruct() | |
| #1 {main} | |
| Next Exception: Second in %sexception_008.php:%d | |
| Stack trace: | |
| #0 %sexception_008.php(%d): TestSecond->__destruct() | |
| #1 {main} | |
| thrown in %sexception_008.php on line %d | |