View Issue Details

IDProjectCategoryView StatusLast Update
0000924XdebugStep Debuggingpublic2017-01-10 14:28
Reporterbobl Assigned Toderick  
Status resolvedResolutionduplicate 
Platformeclipse/pdtOSwindows7OS Versionhome premium sp1
Product Version2.2.1 
Summary0000924: $test = array("\0" => ''); renders variable view inoperable

Encountered w/ eclipse, 4.2.1 and earlier 3.x.

Seems like a simple variable array declared as

$test = array("\0" => '');

Will wipe out the variable view such that no variables will appear in the window during subsequent code execution.

Steps To Reproduce

error_reporting(-1); // added as sanity check


$hello = 'world'; // variable window shows globals and $hello, all normal

$test = array("\0" => ''); // when executed, wipes out variable view, unable to find a way to recover variable view.


Additional Information

Don't know if this is eclipse problem or xdebug problem or illegal php statement. I know that program executes successfully to completion without any errors thrown by php and results are normal.

Apologies if this is known issue as I am new to xdebug. I searched around a bit for 'xdebug null byte' etc and didn't find anything on it.

Thank you very much for your consideration!

TagsNo tags attached.
Operating Systemwindows7
PHP Version5.3.15-5.3.19


duplicate of 0001312 closedderick Implement DBGP's extended_properties to support names and values with \0 
has duplicate 0000610 resolvedderick Xdebug sends invalid '&#0' char reference in response 
has duplicate 0000940 resolvedderick xdebug quits when it reaches an object cast to array that contained protected properties 
has duplicate 0000953 resolvedderick Can not debug arrays which keys contain zero characters 



2013-05-18 18:37

administrator   ~0002467

So, this seems to be working just fine on the Xdebug side, however, the XML it generates is not liked by the IDEs. In order to fix this, I need a change in the debug protocol which requires some deliberation with other implementors.


2013-06-22 13:37

administrator   ~0002509

The following addition has been suggested to the DBGp protocol for this:


2013-07-09 00:29

reporter   ~0002531

Thank you for your work, Derick: ) Hope most popular IDEs will accept and implement your changes quickly.


2014-05-03 22:21

reporter   ~0002807

Hi Derick, it looks like the XML being generated by Xdebug is actually invalid. I tried dumping it into a couple of web browsers and they tell me the XML is invalid.

I'm running into the error debugging WordPress, and my IDE, (Sublime Text), is choking on the invalid XML.

The fragment of XML that the browsers don't like is:
<property name="�lambda_13" fullname="$wp_filter['widgets_init'][10]['�lambda_13']" address="4579437104" type="array" children="1" numchildren="2"></property>

That first &#0 seems to be the problem.

I'm experiencing this on OS X 10.9.2, with PHP 5.5 and Xdebug 2.2.5.

I've opened an issue with the Sublime Text Xdebug client as well, ( ), but I'm not sure what they can do, the XML seems to be parsed using a built-in python XML parser or something.


2014-06-05 20:17

reporter   ~0002843

Last edited: 2014-06-06 08:03

Hi, is there any progress in implementing Dericks proposal into xdebug's dbgp protocol? For me, this is critical problem which prevents me from debugging almost all my code...


2017-01-10 14:27

administrator   ~0004170

Duplicate of 0001312, which is fixed for Xdebug 2.6.0 - as long as the IDE supports DBGp's extended_properties feature.

Issue History

Date Modified Username Field Change
2013-02-13 18:28 bobl New Issue
2013-05-18 18:37 derick Note Added: 0002467
2013-05-18 18:37 derick Assigned To => derick
2013-05-18 18:37 derick Status new => acknowledged
2013-05-18 21:03 derick Relationship added has duplicate 0000610
2013-05-18 21:09 derick Relationship added has duplicate 0000940
2013-06-22 13:02 derick Relationship added has duplicate 0000953
2013-06-22 13:37 derick Note Added: 0002509
2013-07-09 00:29 speller Note Added: 0002531
2014-05-03 22:21 jbeales Note Added: 0002807
2014-06-05 20:17 honza.trtik Note Added: 0002843
2014-06-06 08:03 honza.trtik Note Edited: 0002843
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)
2017-01-10 14:27 derick Note Added: 0004170
2017-01-10 14:27 derick Relationship added duplicate of 0001312
2017-01-10 14:27 derick Status acknowledged => resolved
2017-01-10 14:27 derick Resolution open => duplicate
2017-01-10 14:28 derick Category (No Category) => Remote Debugging
2017-01-10 14:28 derick Steps to Reproduce Updated
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging