Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: XDEBUG_2_2_0RC2
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (26 sloc) 1.005 kb
--TEST--
Test for bug #89: var_dump shows empty strings garbled
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
xdebug.collect_params=1
xdebug.profiler_enable=0
xdebug.show_local_vars=0
html_errors=1
xdebug.var_display_max_children=3
xdebug.overload_var_dump=1
--FILE--
<?php
var_dump(array(4, array('', 2, 'node'), false));
?>
--EXPECT--
<pre class='xdebug-var-dump' dir='ltr'>
<b>array</b> <i>(size=3)</i>
0 <font color='#888a85'>=&gt;</font> <small>int</small> <font color='#4e9a06'>4</font>
1 <font color='#888a85'>=&gt;</font>
<b>array</b> <i>(size=3)</i>
0 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
1 <font color='#888a85'>=&gt;</font> <small>int</small> <font color='#4e9a06'>2</font>
2 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'node'</font> <i>(length=4)</i>
2 <font color='#888a85'>=&gt;</font> <small>boolean</small> <font color='#75507b'>false</font>
</pre>
Jump to Line
Something went wrong with that request. Please try again.