MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001048Xdebug(No Category)public2014-04-14 15:222014-05-20 01:00
ReporterSvetlanaZem 
Assigned Toderick 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version2.2.1 
Target VersionFixed in Version2.2.6 
Summary0001048: Can not get $GLOBAL variable by property_value on function context
DescriptionWhile 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
Attached Fileslog file icon global_value_xdebug.log [^] (43,619 bytes) 2014-04-14 15:22

- Relationships

-  Notes
(0002812)
derick (administrator)
2014-05-19 13:07

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.

- Issue History
Date Modified Username Field Change
2014-04-14 15:22 SvetlanaZem New Issue
2014-04-14 15:22 SvetlanaZem File Added: global_value_xdebug.log
2014-05-19 13:07 derick Note Added: 0002812
2014-05-19 13:07 derick Assigned To => derick
2014-05-19 13:07 derick Status new => acknowledged
2014-05-20 01:00 derick Status acknowledged => closed
2014-05-20 01:00 derick Resolution open => fixed
2014-05-20 01:00 derick Fixed in Version => 2.2.6
2016-07-31 13:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 13:35 derick Category debugclient (debugging tool) => (No Category)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker