View Issue Details

IDProjectCategoryView StatusLast Update
0000606Xdebugpublic2011-08-13 15:18
Reporterdegoo Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version2.1.0 
Summary0000606: evaluate a $this->... expression when $this is not accesible crash xdebug
Description

<?php
class my_class
{
public $legolas;
}

$a = new my_class();
$a->legolas = 5; <--------- when code is here, if i send an eval command with '$this->legolas', xdebug crash. When $this is defined, no problema at all.

Additional Information

seems if $this is undefined, if a eval command is sent, xdebug crash

TagsNo tags attached.
Operating System
PHP Version5.3.3

Relationships

has duplicate 0000704 resolvedderick Every PHP FatalError causes xdebug to crash 

Activities

derick

2010-08-13 08:27

administrator   ~0001557

Please provide:

nnmatveev

2011-04-29 16:31

reporter   ~0001730

<?php
echo isset($this);//breakpoint here
echo isset($this);
echo isset($this);


try to evaluate expression "$this->property" while staying on breakpoint - it will cause crash.
Attempt to access property of any other undefined variable doesn't cause crash(for example $a->property).

Related issue from PhpStorm tracker - http://youtrack.jetbrains.net/issue/WI-5525

derick

2011-08-03 22:49

administrator   ~0001770

I've found an ugly way for this, could you please try the following patch:

http://derickrethans.nl/files/dump/xdebug-issue606.diff.txt

derick

2011-08-13 15:18

administrator   ~0001775

Fixed for 2.1.3 and 2.2dev.