Annotation of embedaddon/php/ext/standard/tests/array/bug51552.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #51552 (debug_backtrace() causes segmentation fault and/or memory issues)
! 3: --FILE--
! 4: <?php
! 5: function walk($element, $key, $p) {
! 6: $backtrace = debug_backtrace();
! 7: echo "$element\n";
! 8: }
! 9:
! 10: $a = array(1,2,3,4,5,6,7,8,9,10);
! 11: array_walk($a, 'walk', 'testthis');
! 12: ?>
! 13: --EXPECT--
! 14: 1
! 15: 2
! 16: 3
! 17: 4
! 18: 5
! 19: 6
! 20: 7
! 21: 8
! 22: 9
! 23: 10
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>