Download src/php/php-src/Zend/tests/dynamic_call/bug47880.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/dynamic_call/bug47880.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/dynamic_call/bug47880.phpt
-
curl -L -o bug47880.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/dynamic_call/bug47880.phpt
278 Bytes
| --TEST-- | |
| Bug #47880 (crashes in call_user_func_array()) | |
| --FILE-- | |
| class bomb { | |
| static function go($n) { | |
| $backtrace = debug_backtrace(false); | |
| $backtrace[1]['args'][1] = 'bomb'; | |
| } | |
| } | |
| call_user_func_array(array('bomb', 'go'), array(0)); | |
| echo "ok\n"; | |
| --EXPECT-- | |
| ok | |