View Issue Details

IDProjectCategoryView StatusLast Update
0001048Xdebugpublic2014-05-20 00:00
ReporterSvetlanaZem Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.2.1 
Fixed in Version2.2.6 
Summary0001048: Can not get $GLOBAL variable by property_value on function context
Description

While debugging code:
<?php

function foo() {
$GLOBALS['CACHE'] = str_pad('', 1024, 'l') . 'k';
xdebug_break(); // 1
echo 1;
}

foo();
xdebug_break(); // 2
echo 1;

property_value -n $GLOBAL['CACHE'] is available only in global context (xdebug_break(); // 2). The command will be responced by "can not get property" if it was called from function (xdebug_break(); // 1).

Log file is attached.

TagsNo tags attached.
Operating System
PHP Version5.4.10-5.4.14

Activities

derick

2014-05-19 12:07

administrator   ~0002812

There is indeed a bug, or rather, something that is not implemented. The property_value implementation misses support for -c, so it doesn't use the superglobals context. This should be an easy fix though.