1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/ext/opcache/tests/opt/inference_002.phpt
T
2021-12-20 11:40:11 +03:00

15 lines
347 B
PHP

--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: Illegal offset type in %sinference_002.php:2
Stack trace:
#0 {main}
thrown in %sinference_002.php on line 2