1--TEST--
2debug_print_backtrace limit
3--FILE--
4<?php
5function a() {
6    b();
7}
8
9function b() {
10    c();
11}
12
13function c() {
14    debug_print_backtrace(0, 1);
15    debug_print_backtrace(0, 2);
16    debug_print_backtrace(0, 0);
17    debug_print_backtrace(0, 4);
18}
19
20a();
21?>
22--EXPECTF--
23#0  c() called at [%sdebug_print_backtrace_limit.php:7]
24#0  c() called at [%sdebug_print_backtrace_limit.php:7]
25#1  b() called at [%sdebug_print_backtrace_limit.php:3]
26#0  c() called at [%sdebug_print_backtrace_limit.php:7]
27#1  b() called at [%sdebug_print_backtrace_limit.php:3]
28#2  a() called at [%sdebug_print_backtrace_limit.php:17]
29#0  c() called at [%sdebug_print_backtrace_limit.php:7]
30#1  b() called at [%sdebug_print_backtrace_limit.php:3]
31#2  a() called at [%sdebug_print_backtrace_limit.php:17]
32