Annotation of embedaddon/php/ext/standard/tests/serialize/bug37947.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #37947 (zend_ptr_stack reallocation problem)
        !             3: --INI--
        !             4: error_reporting=0
        !             5: --FILE--
        !             6: <?php
        !             7: class test {
        !             8:         function extend_zend_ptr_stack($count,$a,$b,$c,$d,$e) {
        !             9:                 if ($count>0) $this->extend_zend_ptr_stack($count -
        !            10: 1,$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';
        !            19: var_dump(unserialize($str));
        !            20: --EXPECT--
        !            21: bool(false)

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