1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
--TEST--
SCCP 015: Conditional Constant Propagation of non-escaping object properties on PHI and Rewinding
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--EXTENSIONS--
opcache
--FILE--
<?php
function loadEntities($entity_information) {
$entity_types = new StdClass();
$entity_types->b = 0;
foreach ($entity_information as $ex) {
var_dump((bool)$entity_types->b);
foreach ($entity_information as $info) {
$entity_types->b = 1;
}
}
}
loadEntities(array("first", "second"));
?>
--EXPECT--
bool(false)
bool(true)
|