1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00
Files
archived-php-src/ext/opcache/tests/opt/inference_010.phpt
T
Dmitry Stogov 1b45efb6fb Fix type inference
This fixes oss-fuzz #47920
2022-06-14 10:20:45 +03:00

19 lines
313 B
PHP

--TEST--
Type inference 010: FRTCH_DIM_W
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--FILE--
<?php
function foo() {
$x = false;
$x[] = &$y;
}
foo();
?>
DONE
--EXPECTF--
Deprecated: Automatic conversion of false to array is deprecated in %sinference_010.php on line 4
DONE