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/sccp_014.phpt
T
2018-10-14 19:45:12 +02:00

24 lines
508 B
PHP

--TEST--
SCCP 014: Conditional Constant Propagation of non-escaping object properties 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 = new StdClass();
$entity_types->a = 1;
foreach ($entity_information as $info) {
$entity_types->a = 0;
}
var_dump((bool)($entity_types->a));
}
loadEntities(array("first", "second"));
?>
--EXPECT--
bool(false)