Download src/php/php-src/ext/opcache/tests/bug69159.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug69159.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug69159.phpt
-
curl -L -o bug69159.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug69159.phpt
308 Bytes
| --TEST-- | |
| Bug #69159 (Opcache causes problem when passing a variable variable to a function) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.optimization_level=-1 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| $i = 1; | |
| $x1 = "okey"; | |
| myFunction(${"x$i"}); | |
| function myFunction($x) { | |
| var_dump($x); | |
| } | |
| --EXPECT-- | |
| string(4) "okey" | |