1--TEST--
2Bug #37947 (zend_ptr_stack reallocation problem)
3--INI--
4error_reporting=0
5--FILE--
6<?php
7class test {
8        function extend_zend_ptr_stack($count,$a,$b,$c,$d,$e) {
9                if ($count>0) $this->extend_zend_ptr_stack($count -
101,$a,$b,$c,$d,$e);
11        }
12
13        function __wakeup() {
14                $this->extend_zend_ptr_stack(10,'a','b','c','d','e');
15        }
16}
17
18$str='a:2:{i:0;O:4:"test":0:{}junk';
19var_dump(unserialize($str));
20?>
21--EXPECT--
22bool(false)
23