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