Date: Tue Aug 17 08:54:03 CEST 2004
User: Derick Rethans
Directory: xdebug
Log Message:
[0.25]
- Fix for bug #89: var_dump shows empty strings garbled
Modified files:
xdebug/xdebug_var.c (version: 1.51)
Added files:
xdebug/tests/bug00089.phpt (new version: 1.1)
[FILE: /xdebug/xdebug_var.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- xdebug/xdebug_var.c:1.50 Mon Aug 16 05:59:26 2004 GMT
+++ xdebug/xdebug_var.c Tue Aug 17 04:54:02 2004 GMT
@@ -717,6 +717,7 @@
efree(tmp);
return tmp2;
} else {
+ *newlen = len;
return estrdup(string);
}
}
[FILE: /xdebug/tests/bug00089.phpt]
--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
--FILE--
<?php
var_dump(array(4, array('', 2, 'node'), false));
?>
--EXPECT--
<pre>
<b>array</b>
0 <font color='#777777'>=></font> <font color='#00bb00'>4</font>
1 <font color='#777777'>=></font>
<b>array</b>
0 <font color='#777777'>=></font> <font color='#bb00bb'>''</font>
1 <font color='#777777'>=></font> <font color='#00bb00'>2</font>
2 <font color='#777777'>=></font> <font color='#bb00bb'>'node'</font>
2 <font color='#777777'>=></font> <font color='#0000ff'>false</font>
</pre>
Received on Tue Aug 17 2004 - 08:54:09 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST