File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / bug27535.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #27535 (Objects pointing to each other cause Apache to crash)
--FILE--
<?php
                                                                                                                                
class Class1
{
	public $_Class2_obj;
}

class Class2
{
	public $storage = '';

	function Class2()
	{
		$this->storage = new Class1();

		$this->storage->_Class2_obj = $this;
	}
}

$foo = new Class2();

?>
Alive!
--EXPECT--
Alive!

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