Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000376XdebugUsage problemspublic2008-06-11 15:092009-08-06 11:38
Reportercboisard 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000376: Fail context for local variable
DescriptionCommand "context_get -i 12 -d 0" return fail result for local variable. Alway type="uninitialized"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" [^] command="context_get" transaction_id="12" context="0">
<property name="output" fullname="$output" type="uninitialized"></property>
<property name="$this" fullname="$this" address="60045568" type="object" children="1" classname="System::Web::UI::HtmlControls::HtmlLink" numchildren="23">
...
TagsNo tags attached.
Operating System
PHP Version5.3-dev
Attached Files

- Relationships
has duplicate 0000459resolvedderick Fail to retrieve context for local variable 
has duplicate 0000460resolvedderick GUI clients always show "uninitialized" for local-scope variables. 
has duplicate 0000461resolvedderick xdebug 2.0.5 with php 5.3 - context_get for function variables always appear as "unitialized" - Linux 
has duplicate 0000498resolvedderick Backport fix for 0000376: Fail context for local variable to stable xdebug 

-  Notes
(0000856)
incastrix (reporter)
2008-06-17 22:55

In my case happen only when depth > 1.

php code:

 class child {
     public $member = 'some value';
     
     public function method() {
         // do something
     }
 }
 
 class father {
     public $first_member = "foo";
     public $second_member = "bar";
     
     public function create() {
         $local = 10;
         
         $newone = new child();
         
         $local += 10;
         
         $this->first_member = "other value";
     }
 
 }
 
 $foo = "asdasd";
 $bar = "qweqwe";
 
 $obj = new father();
 
 $obj->create();


Put a breakpoint inside father->create, xdebug return only $this variable.

php 5.3 cvs (20080617)
xdebug 2.1.0-dev
(0000861)
derick (administrator)
2008-07-04 10:35

I am aware of this, there are some issues with recent optimization patches in PHP 5.3. There is a workaround, but that seems to crash things. I didn't have time to investigate yet.
(0000907)
k-fish (reporter)
2009-01-30 14:44

Tried with 5.3.0beta1 today and it still doesn't work. I'd consider 5.3 stable enough now to fix this. ;) Please!
(0000946)
derick (administrator)
2009-03-28 20:41

I have started on fixing this, but didn't manage to finish. Soon :-)
(0000948)
k-fish (reporter)
2009-03-30 09:29

Wohoo! Looking forward to seeing this fixed!
(0001011)
toddw (reporter)
2009-07-31 22:44

This is a pretty serious blocker for using xdebug with php 5.3.
(0001012)
derick (administrator)
2009-08-01 17:51

This should be fixed in 2.0.5 already, it was committed in May.
(0001025)
derick (administrator)
2009-08-06 11:38

My mistake, this is only in HEAD (2.1-dev) and not in 2.0.5.

- Issue History
Date Modified Username Field Change
2008-06-11 15:09 cboisard New Issue
2008-06-17 22:55 incastrix Note Added: 0000856
2008-07-04 10:35 derick Note Added: 0000861
2009-01-30 14:44 k-fish Note Added: 0000907
2009-03-28 20:41 derick Note Added: 0000946
2009-03-30 09:29 k-fish Note Added: 0000948
2009-07-31 22:44 toddw Note Added: 0001011
2009-08-01 17:51 derick Note Added: 0001012
2009-08-01 17:51 derick Status new => closed
2009-08-01 17:51 derick Resolution open => fixed
2009-08-06 11:38 derick Note Added: 0001025
2009-08-06 11:38 derick Relationship added has duplicate 0000459
2009-08-06 11:39 derick Relationship added has duplicate 0000460
2009-08-06 11:39 derick Relationship added has duplicate 0000461
2009-12-22 00:42 derick Relationship added has duplicate 0000498


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker