mirror of
https://github.com/php/php-src.git
synced 2026-04-17 13:01:02 +02:00
23 lines
478 B
PHP
23 lines
478 B
PHP
--TEST--
|
|
SCCP 013: Conditional Constant Propagation of non-escaping array elements on PHI
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
function loadEntities($entity_information) {
|
|
$entity_types = [];
|
|
foreach ($entity_information as $info) {
|
|
$entity_types[$info] = 1;
|
|
}
|
|
var_dump((bool)($entity_types[$info]));
|
|
}
|
|
|
|
loadEntities(array("first", "second"));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|