Download src/php/php-src/Zend/tests/exceptions/bug30707.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug30707.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug30707.phpt
-
curl -L -o bug30707.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug30707.phpt
415 Bytes
| --TEST-- | |
| Bug #30707 (Segmentation fault on exception in method) | |
| --FILE-- | |
| class C { | |
| function byePHP($plop) { | |
| echo "ok\n"; | |
| } | |
| function plip() { | |
| try { | |
| $this->plap($this->plop()); | |
| } catch(Exception $e) { | |
| } | |
| } | |
| function plap($a) { | |
| } | |
| function plop() { | |
| throw new Exception; | |
| } | |
| } | |
| $x = new C; | |
| $x->byePHP($x->plip()); | |
| --EXPECT-- | |
| ok | |