forked from xdebug/xdebug
/
bug00089.phpt
26 lines (26 loc) · 1005 Bytes
/
bug00089.phpt
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
--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'>=></font> <small>int</small> <font color='#4e9a06'>4</font>
1 <font color='#888a85'>=></font>
<b>array</b> <i>(size=3)</i>
0 <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
1 <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>2</font>
2 <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'node'</font> <i>(length=4)</i>
2 <font color='#888a85'>=></font> <small>boolean</small> <font color='#75507b'>false</font>
</pre>