Download src/php/php-src/ext/opcache/tests/opt/gh10801.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/gh10801.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/opt/gh10801.phpt
-
curl -L -o gh10801.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/gh10801.phpt
468 Bytes
| --TEST-- | |
| GH-10801 (Named arguments in CTE functions cause a segfault) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.optimization_level=0xe0 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| // Named argument case and does not do CTE as expected | |
| print_r(array_keys(array: [1 => 1], strict: true, filter_value: 0)); | |
| // Will not use named arguments and do CTE as expected | |
| print_r(array_keys(array: [1 => 1], filter_value: 0, strict: true)); | |
| --EXPECT-- | |
| Array | |
| ( | |
| ) | |
| Array | |
| ( | |
| ) | |