MantisBT - Xdebug
View Issue Details
0001305XdebugUsage problems (Wrong Results)public2016-05-18 14:042017-12-02 16:19
iliasm 
derick 
normalminoralways
closedfixed 
CentOS6.7 Final
2.4.0 
2.6.0alpha1 
5.4.45-5.4.50
0001305: "can not get property" error
When an associative array's first level key contains an apostrophe character, it produces a "can not get property" error. Otherwise, I must be doing something very wrong!
<?php

$settings = array();

//This doesn't work
$settings["One's Stuff"]['id'] = 1;
$settings["Another's Stuff"]['id'] = 2;

//This works
$settings["Ones Stuff"]['id'] = 3;
$settings["Anothers Stuff"]['id'] = 4;
No tags attached.
png xdebug_can_not_get_property.PNG (34,476) 2016-05-18 14:04
https://bugs.xdebug.org/file_download.php?file_id=313&type=bug
png

txt xdebug log.txt (56,972) 2016-05-23 10:09
https://bugs.xdebug.org/file_download.php?file_id=314&type=bug
Issue History
2016-05-18 14:04iliasmNew Issue
2016-05-18 14:04iliasmFile Added: xdebug_can_not_get_property.PNG
2016-05-18 14:47derickNote Added: 0003606
2016-05-18 14:47derickAssigned To => derick
2016-05-18 14:47derickStatusnew => feedback
2016-05-23 10:09iliasmFile Added: xdebug log.txt
2016-05-23 10:13iliasmNote Added: 0003607
2016-05-23 10:13iliasmStatusfeedback => assigned
2016-05-27 10:38derickNote Added: 0003611
2016-07-31 13:36derickCategoryUsage problems => Usage problems (Crashes)
2016-07-31 13:38derickCategoryUsage problems (Crashes) => Usage problems (Wrong Results)
2016-12-04 17:07derickStatusassigned => confirmed
2017-02-08 22:02derickNote Added: 0004209
2017-02-08 22:02derickStatusconfirmed => closed
2017-02-08 22:02derickResolutionopen => fixed
2017-02-08 22:02derickFixed in Version => 2.6.0dev
2017-12-02 16:19derickFixed in Version2.6.0dev => 2.6.0alpha1

Notes
(0003606)
derick   
2016-05-18 14:47   
Please follow the instructions at https://xdebug.org/support.php#remote [^] on how to reproduce DBGp/remote debugging issues.
(0003607)
iliasm   
2016-05-23 10:13   
log added. it logs the script shown above, line by line debugging. At line 103 of the log is an example of how it fails to evaluate $settings. thank you!
(0003611)
derick   
2016-05-27 10:38   
I can reproduce it - the fix is a bit trickier though!
(0004209)
derick   
2017-02-08 22:02   
Fixed in Git for 2.6.0.