1--TEST-- 2ZE2 object references 3--SKIPIF-- 4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> 5--FILE-- 6<?php 7 8class Foo { 9 public $name; 10 11 function Foo() { 12 $this->name = "I'm Foo!\n"; 13 } 14} 15 16$foo = new Foo; 17echo $foo->name; 18$bar = $foo; 19$bar->name = "I'm Bar!\n"; 20 21// In ZE1, we would expect "I'm Foo!" 22echo $foo->name; 23 24?> 25--EXPECT-- 26I'm Foo! 27I'm Bar! 28