mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
23 lines
327 B
PHP
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
|