xref: /PHP-5.6/Zend/tests/bug54372.phpt (revision 3e36ecd9)
1--TEST--
2Bug #54372 (Crash accessing global object itself returned from its __get() handle)
3--FILE--
4<?php
5class test_class
6{
7    public function __get($name)
8    {
9        return $this;
10    }
11
12    public function b()
13    {
14        echo "ok\n";
15    }
16}
17
18global $test3;
19$test3 = new test_class();
20$test3->a->b();
21?>
22--EXPECT--
23ok
24