1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
--TEST--
Test for bug #987: Hidden property names not shown with var_dump (HTML)
--INI--
html_errors=1
xdebug.mode=develop
xdebug.cli_color=0
xdebug.file_link_format=
xdebug.filename_format=
--FILE--
<?php
$object = (object) array('key' => 'value', 1 => 0, -4 => "foo", (int) 3.14 => false);
var_dump($object);
?>
--EXPECTF--
<pre class='xdebug-var-dump' dir='ltr'>
<small>%sbug00987-002.php:4:</small>
<b>object</b>(<i>stdClass</i>)[<i>%d</i>]
<i>public</i> 'key' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'value'</font> <i>(length=5)</i>
<i>public</i> '1' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>0</font>
<i>public</i> '-4' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'foo'</font> <i>(length=3)</i>
<i>public</i> '3' <font color='#888a85'>=></font> <small>boolean</small> <font color='#75507b'>false</font>
</pre>
|