diff options
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/symtable_cache_recursive_dtor.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/symtable_cache_recursive_dtor.phpt b/Zend/tests/symtable_cache_recursive_dtor.phpt new file mode 100644 index 0000000000..def0816a66 --- /dev/null +++ b/Zend/tests/symtable_cache_recursive_dtor.phpt @@ -0,0 +1,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=== |