← Back
Editing: sccp_015.phpt
--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 --SKIPIF-- <?php require_once('skipif.inc'); ?> --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)
Save File
Cancel