1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/tests/lang/bug27535.phpt
2020-02-03 22:52:20 +01:00

29 lines
353 B
PHP

--TEST--
Bug #27535 (Objects pointing to each other cause Apache to crash)
--FILE--
<?php
class Class1
{
public $_Class2_obj;
}
class Class2
{
public $storage = '';
function __construct()
{
$this->storage = new Class1();
$this->storage->_Class2_obj = $this;
}
}
$foo = new Class2();
?>
Alive!
--EXPECT--
Alive!