Download src/php/php-src/ext/opcache/tests/opt/coalesce_002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/coalesce_002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/opt/coalesce_002.phpt
-
curl -L -o coalesce_002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/coalesce_002.phpt
498 Bytes
| --TEST-- | |
| COALESCE optimization | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.optimization_level=-1 | |
| --FILE-- | |
| function t() { | |
| $y[" $a "] ??= var_dump(); | |
| } | |
| t(); | |
| --EXPECTF-- | |
| Warning: Undefined variable $a in %scoalesce_002.php on line 3 | |
| Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %scoalesce_002.php:3 | |
| Stack trace: | |
| #0 %scoalesce_002.php(3): var_dump() | |
| #1 %scoalesce_002.php(5): t() | |
| #2 {main} | |
| thrown in %scoalesce_002.php on line 3 |