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

From: <noreply[@]lists.xdebug.org>
Date: Mon, 4 Jun 2007 07:32:16 +0200

The following NEW bug has been ADDED.
======================================================================
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: new
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 07:32 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)
======================================================================

Bug History
Date Modified Username Field Change
======================================================================
2007-06-04 07:32Mazzu New Bug
2007-06-04 07:32Mazzu Bug Monitored: Mazzu
======================================================================
Received on Mon Jun 04 2007 - 07:32:18 BST

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