View Issue Details

IDProjectCategoryView StatusLast Update
0000898XdebugUncategorizedpublic2012-11-10 23:16
Reporterlexa Assigned To 
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.