Annotation of embedaddon/php/Zend/tests/bug54372.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #54372 (Crash accessing global object itself returned from its __get() handle)
                      3: --FILE--
                      4: <?php
                      5: class 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: 
                     18: global $test3;
                     19: $test3 = new test_class();
                     20: $test3->a->b();
                     21: ?>
                     22: --EXPECT--
                     23: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>