File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug55305.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:36 2012 UTC (12 years, 11 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
--FILE--
<?php
class Foo {
  var $foo = "test";
}

$f = new Foo();
$f->bar =& $f->foo;
var_dump($f->foo);
var_dump($f->bar);
?>
--EXPECT--
string(4) "test"
string(4) "test"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>