mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
29 lines
449 B
Plaintext
29 lines
449 B
Plaintext
|
--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!
|