View Issue Details

IDProjectCategoryView StatusLast Update
0000898XdebugUncategorizedpublic2012-11-10 23:16
Reporterlexa Assigned Toderick  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformlinuxOSgentooOS Version3.0.17-tuxonice-
Product Version2.2.1 
Summary0000898: Wrong works with empty string key in ArrayObject.
Description

Wrong works with empty string key in ArrayObject.

Steps To Reproduce

test.php
{code}
$example = new ArrayObject;
$example[""] = 'value';

var_dump($example);
{code}

php test.php
{result}
PHP Notice: Illegal member variable name in /path/to/script/test.php on line 11
PHP Stack trace:
PHP 1. {main}() /path/to/script/test.php:0
PHP 2. var_dump(...) /path/to/script/test.php:11

Notice: Illegal member variable name in /path/to/script/test.php on line 11

Call Stack:
0.0029 633048 1. {main}() /path/to/script/test.php:0
0.0038 634192 2. var_dump(...) /path/to/script/test.php:11

Variables in local scope (#1):
$example = ...

class ArrayObject#1 (1) {
public $ => string(5) "value"
}
{result}

Additional Information

Can reproduce only on 5.3.* branch

TagsNo tags attached.
Operating System
PHP Version5.3.14

Activities

derick

2012-11-10 23:16

administrator   ~0002377

Fixed on Github for Xdebug 2.2.2 and 2.3.0dev.

Issue History

Date Modified Username Field Change
2012-11-01 11:36 lexa New Issue
2012-11-10 23:16 derick Note Added: 0002377
2012-11-10 23:16 derick Status new => closed
2012-11-10 23:16 derick Assigned To => derick
2012-11-10 23:16 derick Resolution open => fixed
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized