xref: /PHP-7.2/ext/standard/tests/array/bug51552.phpt (revision d24c14cb)
1--TEST--
2Bug #51552 (debug_backtrace() causes segmentation fault and/or memory issues)
3--FILE--
4<?php
5function 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);
11array_walk($a, 'walk', 'testthis');
12?>
13--EXPECT--
141
152
163
174
185
196
207
218
229
2310
24