[xdebug-dev] Bug 0000280: var_dump don't display key of array as expected

From: <noreply[@]lists.xdebug.org>
Date: Mon, 4 Jun 2007 18:05:34 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000280
======================================================================
Reporter: Mazzu
Handler:
======================================================================
Project: Xdebug
Bug ID: 280
Category: Usage problems
Reproducibility: sometimes
Severity: minor
Priority: normal
Status: closed
Operating System: Debian GNU/Linux
PHP Version: 5.2.1
Xdebug Version: 2.0.0rc4
======================================================================
Date Submitted: 2007-06-04 07:32 CEST
Last Modified: 2007-06-04 18:05 CEST
======================================================================
Summary: var_dump don't display key of array as expected
Description:
When I'm using XDebug and when the setting 'html_errors' is set to On,
var_dump() function don't display as expected the keys of array which
contain the \0 character.

Reproduce code:
---------------
<?php
$var = "te\0st";
$arr = array($var=>$var);
ini_set('html_errors', '1');
var_dump($arr);
?>

Expected result:
----------------
array
  'te?st' => string 'te&http://bugs.xdebug.org/bug_view_page.php?bug_id=0065533;st' (length=5)

Actual result:
--------------
array
  'te' => string 'te&http://bugs.xdebug.org/bug_view_page.php?bug_id=0065533;st' (length=5)
======================================================================

----------------------------------------------------------------------
 Mazzu - 2007-06-04 07:47 CEST
----------------------------------------------------------------------
Oh ! When I have "copy pasted" the output I had, \0 characters have been
replaced with a '?' but my browser submit a strange character that is here
replaced with '&65533;'

----
In the mail notification I've received, the \0 characters were replaced
with '&http://bugs.xdebug.org./bug_view_page.php?bug_id=0065533;' 
----
I hope my report is comprehensible :s
----------------------------------------------------------------------
 derick - 2007-06-04 18:05 CEST 
----------------------------------------------------------------------
Fixed in CVS.
Bug History
Date Modified  Username       Field                    Change              
======================================================================
2007-06-04 07:32Mazzu          New Bug                                      
2007-06-04 07:32Mazzu          Bug Monitored: Mazzu                         
2007-06-04 07:47Mazzu          Bugnote Added: 0000649                       
2007-06-04 18:05derick         Bugnote Added: 0000650                       
2007-06-04 18:05derick         Status                   new => closed       
======================================================================
Received on Mon Jun 04 2007 - 18:05:35 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST