mirror of
https://github.com/php/php-src.git
synced 2025-01-26 05:34:32 +08:00
- Added test for bug #27535 (Objects pointing to each other cause Apache to
crash).
This commit is contained in:
parent
35f695954a
commit
360b98566c
28
tests/lang/bug27535.phpt
Normal file
28
tests/lang/bug27535.phpt
Normal 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!
|
Loading…
Reference in New Issue
Block a user