Download src/php/php-src/ext/opcache/tests/bug66176.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug66176.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug66176.phpt
-
curl -L -o bug66176.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug66176.phpt
333 Bytes
| --TEST-- | |
| Bug #66176 (Invalid constant substitution) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.optimization_level=-1 | |
| opcache.file_update_protection=0 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| function foo($v) { | |
| global $a; | |
| return $a[$v]; | |
| } | |
| $a = array(PHP_VERSION => 1); | |
| var_dump(foo(PHP_VERSION)); | |
| --EXPECT-- | |
| int(1) | |