blob: be972f4fdf5222ac5c61c9490ba1e42a152a5041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
SCCP 020: Object assignment
--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
|