Download src/php/php-src/ext/opcache/tests/opt/inference_002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/inference_002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/opt/inference_002.phpt
-
curl -L -o inference_002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/inference_002.phpt
372 Bytes
| --TEST-- | |
| Type inference 002: Type inference for INIT_ARRAY with invalid index | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.optimization_level=-1 | |
| --FILE-- | |
| <?php | |
| var_dump([[]=>&$x]); | |
| ?> | |
| --EXPECTF-- | |
| Fatal error: Uncaught TypeError: Cannot access offset of type array on array in %sinference_002.php:2 | |
| Stack trace: | |
| #0 {main} | |
| thrown in %sinference_002.php on line 2 | |