MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001305XdebugUsage problems (Wrong Results)public2016-05-18 14:042017-02-08 22:02
Reporteriliasm 
Assigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSCentOSOS Version6.7 Final
Product Version2.4.0 
Target VersionFixed in Version2.6.0dev 
Summary0001305: "can not get property" error
DescriptionWhen 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!
Steps To Reproduce<?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;
TagsNo tags attached.
Operating System
PHP Version5.4.45-5.4.50
Attached Filespng file icon xdebug_can_not_get_property.PNG [^] (34,476 bytes) 2016-05-18 14:04


txt file icon xdebug log.txt [^] (56,972 bytes) 2016-05-23 10:09 [Show Content]

- Relationships

-  Notes
(0003606)
derick (administrator)
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 (reporter)
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 (administrator)
2016-05-27 10:38

I can reproduce it - the fix is a bit trickier though!
(0004209)
derick (administrator)
2017-02-08 22:02

Fixed in Git for 2.6.0.

- Issue History
Date Modified Username Field Change
2016-05-18 14:04 iliasm New Issue
2016-05-18 14:04 iliasm File Added: xdebug_can_not_get_property.PNG
2016-05-18 14:47 derick Note Added: 0003606
2016-05-18 14:47 derick Assigned To => derick
2016-05-18 14:47 derick Status new => feedback
2016-05-23 10:09 iliasm File Added: xdebug log.txt
2016-05-23 10:13 iliasm Note Added: 0003607
2016-05-23 10:13 iliasm Status feedback => assigned
2016-05-27 10:38 derick Note Added: 0003611
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)
2016-12-04 17:07 derick Status assigned => confirmed
2017-02-08 22:02 derick Note Added: 0004209
2017-02-08 22:02 derick Status confirmed => closed
2017-02-08 22:02 derick Resolution open => fixed
2017-02-08 22:02 derick Fixed in Version => 2.6.0dev


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker