Download src/php/php-src/Zend/tests/exceptions/bug64821.3.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug64821.3.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug64821.3.phpt
-
curl -L -o bug64821.3.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug64821.3.phpt
347 Bytes
| --TEST-- | |
| Bug #64821 Custom Exceptions crash when internal properties overridden (variation 3) | |
| --FILE-- | |
| class a extends exception { | |
| public function __construct() { | |
| $this->line = 0; | |
| $this->file = ""; | |
| } | |
| } | |
| throw new a; | |
| --EXPECTF-- | |
| Fatal error: Uncaught a in :0 | |
| Stack trace: | |
| #0 {main} | |
| thrown in Unknown on line %d | |