Download src/php/php-src/Zend/tests/exceptions/bug48428.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug48428.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug48428.phpt
-
curl -L -o bug48428.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug48428.phpt
266 Bytes
| --TEST-- | |
| Bug #48428 (crash when exception is thrown while passing function arguments) | |
| --FILE-- | |
| try { | |
| function x() { throw new Exception("ERROR"); } | |
| x(x()); | |
| } catch(Exception $e) { | |
| echo($e -> getMessage()); | |
| } | |
| --EXPECT-- | |
| ERROR | |