summaryrefslogtreecommitdiff
path: root/Zend/tests/bug54372.phpt
blob: e2e9911f816ec002dd422ccf8ebad7d7f7de79a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #54372 (Crash accessing global object itself returned from its __get() handle)
--FILE--
<?php
class test_class
{
    public function __get($name)
    {
        return $this;
    }

    public function b()
    {
        echo "ok\n";
    }
}

global $test3;
$test3 = new test_class();
$test3->a->b();
?>
--EXPECT--
ok