MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000280XdebugUsage problems (Wrong Results)public2007-06-04 07:322007-06-04 18:05
ReporterMazzu 
Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000280: var_dump don't display key of array as expected
DescriptionWhen 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 InformationI'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
Attached Files

- Relationships

-  Notes
(0000649)
Mazzu (reporter)
2007-06-04 07:47

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
(0000650)
derick (administrator)
2007-06-04 18:05

Fixed in CVS.

- Issue History
Date Modified Username Field Change
2007-06-04 07:32 Mazzu New Issue
2007-06-04 07:47 Mazzu Note Added: 0000649
2007-06-04 18:05 derick Status new => closed
2007-06-04 18:05 derick Note Added: 0000650
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker