1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/opcache/tests/opt/sccp_020.phpt
T
2017-09-11 23:19:03 +03:00

23 lines
327 B
PHP

--TEST--
SCCP 020: Object assignemnt
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
;opcache.opt_debug_level=0x20000
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function foo() {
$b = $a = new stdClass;
$a->x = 5;
$b->x = 42;
echo $a->x;
echo "\n";
}
foo();
?>
--EXPECT--
42