Download src/php/php-src/Zend/tests/exceptions/bug48228.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug48228.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug48228.phpt
-
curl -L -o bug48228.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug48228.phpt
440 Bytes
| --TEST-- | |
| Bug #48228 (crash when exception is thrown while passing function arguments) | |
| --FILE-- | |
| function do_throw() { | |
| throw new Exception(); | |
| } | |
| class aa | |
| { | |
| function check() | |
| { | |
| } | |
| function dosome() | |
| { | |
| $this->check(do_throw()); | |
| } | |
| } | |
| $l_aa=new aa(); | |
| $l_aa->dosome(); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Exception in %s | |
| Stack trace: | |
| #0 %s(%d): do_throw() | |
| #1 %s(%d): aa->dosome() | |
| #2 {main} | |
| thrown in %s | |