summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/opt/sccp_018.phpt
blob: e7a78ef50d66013c28952ab664eb52f22d3725b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
SCCP 018: 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() {
    $a = new stdClass;
    $b = $a;
    $a->x = 5;
    $b->x = 42;
    echo $a->x;
    echo "\n";
}
foo();
?>
--EXPECT--
42