summaryrefslogtreecommitdiff
path: root/tests/lang/bug27535.phpt
blob: a8294e0f09ce6f1548d5164bf913791aadc8f6c0 (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 __construct()
    {
        $this->storage = new Class1();

        $this->storage->_Class2_obj = $this;
    }
}

$foo = new Class2();

?>
Alive!
--EXPECT--
Alive!