Download src/php/php-src/Zend/tests/dynamic_call/bug69167.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/dynamic_call/bug69167.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/dynamic_call/bug69167.phpt
-
curl -L -o bug69167.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/dynamic_call/bug69167.phpt
234 Bytes
| --TEST-- | |
| Bug #69167 (call_user_func does not support references anymore) | |
| --FILE-- | |
| function l($m) { | |
| echo $m . "\n"; | |
| } | |
| $cb = 'l'; | |
| call_user_func($cb, 'hi'); | |
| $cb2 = &$cb; | |
| call_user_func($cb2, 'hi2'); | |
| --EXPECT-- | |
| hi | |
| hi2 | |