NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[RESOLVED] Dynamic class and protected variable
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
Hi,

I've just found a curious thing : when using a dynamic class with some protected variables, the DBG looses the name of the variable but keeps the content.

To reproduce the bug:

classA
{
protected $a;
public function __construct() {$this->a = 10;}
}

$class = "A";
$obj_A = new $class();
debugbreak();
echo "done";


In debug mode at the breakpoint, when expanding the $obj_A properties, the DBG doesn't display the variable $a name.

Can u reproduce it too ?

PhpED v4.6.2 (b4632)
PHP 5.2
DBG 3.1.7

Thanks and good luck !
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
You forgot to update debugger module on your server.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
Well sorry, I didn't know about the DBG module update. I downloaded it a few weeks ago... I tried the 3.1.8 : it's working great !
Thanks
View user's profileFind all posts by medifirstSend private message
[RESOLVED] Dynamic class and protected variable
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic