View Issue Details

IDProjectCategoryView StatusLast Update
0000280XdebugUncategorizedpublic2007-06-04 17:05
ReporterMazzu Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionopen 
Summary0000280: 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�st' (length=5)

Actual result:

array
'te' => string 'te�st' (length=5)

Additional Information

I'm using PHP 5.2.3

When 'html_errors' is set to Off, var_dump() output is fine :
array(1) { ["te�st"]=> string(5) "te�st" }

TagsNo tags attached.
Operating SystemDebian GNU/Linux
PHP Version5.2.1

Activities

Mazzu

2007-06-04 06:47

reporter   ~0000649

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 17:05

administrator   ~0000650

Fixed in CVS.

Issue History

Date Modified Username Field Change
2007-06-04 06:32 Mazzu New Issue
2007-06-04 06:47 Mazzu Note Added: 0000649
2007-06-04 17:05 derick Status new => closed
2007-06-04 17:05 derick Note Added: 0000650
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized