Skip to content
Newer
Older
100644 35 lines (32 sloc) 705 Bytes
c99bef8 @derickr - Implemented different levels of showing variables.
authored
1 --TEST--
2 Test stack traces (level1, text)
3 --INI--
4 xdebug.default_enable=1
5 xdebug.profiler_enable=0
6 xdebug.auto_trace=0
7 xdebug.trace_format=0
8 xdebug.dump_globals=0
9 xdebug.show_mem_delta=0
10 xdebug.collect_vars=0
11 xdebug.collect_params=1
12 xdebug.collect_returns=0
13 --FILE--
14 <?php
15 function foo( $a ) {
16 for ($i = 1; $i < $a['foo']; $i++) {
17 poo();
18 }
19 }
20
21 $c = new stdClass;
22 $c->bar = 100;
23 $a = array(
24 42 => false, 'foo' => 912124,
25 $c, new stdClass, fopen( '/etc/passwd', 'r' )
26 );
27 foo( $a );
28 ?>
29 --EXPECTF--
30 Fatal error: Call to undefined function poo() in /%s/stacktrace%s.php on line 4
31
32 Call Stack:
33 %w%f %w%d 1. {main}() /%s/stacktrace%s.php:0
34 %w%f %w%d 2. foo(array(5)) /%s/stacktrace%s.php:14
Something went wrong with that request. Please try again.