Download src/php/php-src/Zend/tests/gc/bug67314.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug67314.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/gc/bug67314.phpt
-
curl -L -o bug67314.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug67314.phpt
400 Bytes
| --TEST-- | |
| Bug #67314 (Segmentation fault in gc_remove_zval_from_buffer) | |
| --FILE-- | |
| function crash() | |
| { | |
| $notDefined[$i] = 'test'; | |
| } | |
| function error_handler() { return false; } | |
| set_error_handler('error_handler'); | |
| crash(); | |
| echo "made it once\n"; | |
| crash(); | |
| echo "ok\n"; | |
| --EXPECTF-- | |
| Warning: Undefined variable $i in %s on line %d | |
| made it once | |
| Warning: Undefined variable $i in %s on line %d | |
| ok | |