summaryrefslogtreecommitdiff
path: root/tests/lang/bug27535.phpt
blob: a6ceae7463c4af05703b0752f6d03d54931f1c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--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!