Download src/php/php-src/ext/opcache/tests/bug69125.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug69125.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug69125.phpt
-
curl -L -o bug69125.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug69125.phpt
315 Bytes
| --TEST-- | |
| Bug #69125 (Array numeric string as key) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| const SZERO = '0'; | |
| const SONE = '1'; | |
| $array[SZERO] = "okey"; | |
| $array[1] = "okey"; | |
| var_dump($array[SZERO]); | |
| var_dump($array[SONE]); | |
| --EXPECT-- | |
| string(4) "okey" | |
| string(4) "okey" | |