summaryrefslogtreecommitdiff
path: root/Zend/tests/symtable_cache_recursive_dtor.phpt
blob: def0816a669433b876dc9989d4a135528de11ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Symtable cache slots may be acquired while cleaning symtable
--FILE--
<?php
class A {
    // Must be larger than the symtable cache.
    static $max = 40;
    function __destruct() {
        if (self::$max-- < 0) return;
        $x = 'y';
        $$x = new a;
    }
}
new A;

?>
===DONE===
--EXPECT--
===DONE===