View Issue Details

IDProjectCategoryView StatusLast Update
0000682Xdebugpublic2012-07-14 19:38
Reporterericp Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionduplicate 
Product Version2.1.0 
Target Version2.2.1Fixed in Version2.2.1 
Summary0000682: Binary key values in arrays aren't encoded
Description

When stepping through the supplied code, xdebug sends an invalid XML packet, causing Komodo to stop, giving a "not well-formed (invalid token)" error message.

Steps To Reproduce

<?php
$arr1 = array();
$key = pack('H*','7d72c7d72643f4ef568a9d2f798e1c5ec77cc666');
echo($key);
$arr1[$key] = 1;
echo("problem data: " . $arr1[$key] . "\n");
echo("Stop here\n");
?>

Additional Information

Ref http://bugs.activestate.com/show_bug.cgi?id=89787

TagsNo tags attached.
Attached Files
error.xml (1,024 bytes)   
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
    command="context_get"
    transaction_id="44" context="0">
  <property name="arr1" fullname="$arr1"
     address="140345500" type="array" children="1" numchildren="1"
                                              page="0" pagesize="25">
  <property name="}r��&amp;C��V��/y^�|�f"
                    +--- error points to one of the "?" chars in this string.
            fullname="$arr1[&apos;}r��&amp;C��V��/y^�|�f&apos;]"
            address="140349780"
            type="int">
    <![CDATA[1]]>
   </property>
   </property>
   <property name="key" fullname="$key" address="140354892"
   type="string" size="20" encoding="base64"><![CDATA[fXLH1yZD9O9Wip0veY4cXsd8xmY=]]></property></response>


dbgp.server: session cmdloop exception:
ExpatError('not well-formed (invalid token): line 2, column 300',):
not well-formed (invalid token): line 2, column 300
error.xml (1,024 bytes)   
Operating SystemLinux
PHP Version5.2.9

Relationships

duplicate of 0000610 resolvedderick Xdebug sends invalid '&#0' char reference in response 

Activities

Issue History

Date Modified Username Field Change
2011-04-16 00:29 ericp New Issue
2011-04-16 00:29 ericp File Added: error.xml
2012-03-12 16:43 derick Target Version => 2.2.1
2012-06-27 21:15 derick Relationship added duplicate of 0000610
2012-06-27 21:15 derick Status new => resolved
2012-06-27 21:15 derick Resolution open => duplicate
2012-06-27 21:15 derick Assigned To => derick
2012-07-14 19:38 derick Fixed in Version => 2.2.1
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)