View Issue Details

IDProjectCategoryView StatusLast Update
0001305XdebugUncategorizedpublic2017-12-02 16:19
Reporteriliasm Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
OSCentOSOS Version6.7 Final 
Product Version2.4.0 
Fixed in Version2.6.0alpha1 
Summary0001305: "can not get property" error
Description

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!

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

Activities

derick

2016-05-18 13:47

administrator   ~0003606

Please follow the instructions at https://xdebug.org/support.php#remote on how to reproduce DBGp/remote debugging issues.

iliasm

2016-05-23 09:13

reporter   ~0003607

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!

derick

2016-05-27 09:38

administrator   ~0003611

I can reproduce it - the fix is a bit trickier though!

derick

2017-02-08 22:02

administrator   ~0004209

Fixed in Git for 2.6.0.