Download src/php/php-src/Zend/tests/exceptions/bug30161.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug30161.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug30161.phpt
-
curl -L -o bug30161.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug30161.phpt
519 Bytes
| --TEST-- | |
| Bug #30161 (Segmentation fault with exceptions) | |
| --FILE-- | |
| class FIIFO { | |
| public function __construct() { | |
| throw new Exception; | |
| } | |
| } | |
| class hariCow extends FIIFO { | |
| public function __construct() { | |
| try { | |
| parent::__construct(); | |
| } catch(Exception $e) { | |
| } | |
| } | |
| public function __toString() { | |
| return "ok\n"; | |
| } | |
| } | |
| $db = new hariCow; | |
| echo $db; | |
| --EXPECT-- | |
| ok | |