1--TEST--
2GH-16040: Use-after-free of object released in hook
3--FILE--
4<?php
5
6class A {
7    public $bar {
8        get {
9            $GLOBALS['a'] = null;
10            return 42;
11        }
12    }
13}
14
15$a = new A();
16var_dump($a->bar);
17
18?>
19--EXPECT--
20int(42)
21