Annotation of embedaddon/php/Zend/tests/bug64578.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: set_error_handler(function($no, $err) { var_dump($err); });
        !             7: 
        !             8: function x($s) { $s['a'] = 1; };
        !             9: $y = '1';
        !            10: x($y);
        !            11: print_r($y);
        !            12: --EXPECTF--
        !            13: string(25) "Illegal string offset 'a'"
        !            14: 1

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