1234567891011121314151617181920212223242526 |
- --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)
|