- Added test for bug #27535 (Objects pointing to each other cause Apache to

crash).
This commit is contained in:
Derick Rethans 2004-03-09 08:19:19 +00:00
parent 35f695954a
commit 360b98566c

28
tests/lang/bug27535.phpt Normal file
View File

@ -0,0 +1,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!