Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (41 sloc) 2.076 kb
c99bef8 Derick Rethans - Implemented different levels of showing variables.
authored
1 --TEST--
2 Test stack traces (level4, html)
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.var_display_max_children=50
11 xdebug.var_display_max_depth=5
12 xdebug.var_display_max_length=64
13 xdebug.collect_vars=1
14 xdebug.collect_params=4
15 xdebug.collect_returns=0
16 html_errors=1
23ea7f0 Derick Rethans - Fixed a few tests.
authored
17 xdebug.file_link_format=
c99bef8 Derick Rethans - Implemented different levels of showing variables.
authored
18 --FILE--
19 <?php
20 function foo( $a ) {
21 for ($i = 1; $i < $a['foo']; $i++) {
22 poo();
23 }
24 }
25
26 $c = new stdClass;
27 $c->bar = 100;
28 $a = array(
29 42 => false, 'foo' => 912124,
30 $c, new stdClass, fopen( '/etc/passwd', 'r' )
31 );
32 foo( $a );
33 ?>
34 --EXPECTF--
35 <br />
aa1b5c4 Derick Rethans Add a error-specific class to stack traces.
authored
36 <font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
c99bef8 Derick Rethans - Implemented different levels of showing variables.
authored
37 <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Call to undefined function poo() in /%s/stacktrace_html_4.php on line <i>4</i></th></tr>
38 <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
39 <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
40 <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>%f</td><td bgcolor='#eeeeec' align='right'>%d</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/%s/stacktrace_html_4.php' bgcolor='#eeeeec'>../stacktrace_html_4.php<b>:</b>0</td></tr>
622c5ff Derick Rethans - Fixed bug #684: xdebug_var_dump - IE does not support &amp;.
authored
41 <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>%f</td><td bgcolor='#eeeeec' align='right'>%d</td><td bgcolor='#eeeeec'>foo( <span>$a = </span><span>array (42 =&gt; FALSE, &#39;foo&#39; =&gt; 912124, 43 =&gt; class stdClass { public $bar = 100 }, 44 =&gt; class stdClass { }, 45 =&gt; resource(5) of type (stream))</span> )</td><td title='/%s/stacktrace_html_4.php' bgcolor='#eeeeec'>../stacktrace_html_4.php<b>:</b>14</td></tr>
c99bef8 Derick Rethans - Implemented different levels of showing variables.
authored
42 </table></font>
Something went wrong with that request. Please try again.