Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: XDEBUG_2_0_0RC1
Fetching contributors…

Cannot retrieve contributors at this time

file 26 lines (26 sloc) 0.84 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
--TEST--
Test for bug #89: var_dump shows empty strings garbled
--SKIPIF--
<?php if (!extension_loaded("xdebug")) print "skip"; ?>
--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
--FILE--
<?php
var_dump(array(4, array('', 2, 'node'), false));
?>
--EXPECT--
<pre>
<b>array</b>
0 <font color='#888a85'>=&gt;</font> <font color='#4e9a06'>4</font>
1 <font color='#888a85'>=&gt;</font>
<b>array</b>
0 <font color='#888a85'>=&gt;</font> <font color='#cc0000'>''</font> <i>(length=0)</i>
1 <font color='#888a85'>=&gt;</font> <font color='#4e9a06'>2</font>
2 <font color='#888a85'>=&gt;</font> <font color='#cc0000'>'node'</font> <i>(length=4)</i>
2 <font color='#888a85'>=&gt;</font> <font color='#75507b'>false</font>
</pre>
Something went wrong with that request. Please try again.