[xdebug-general] Re: Problem: No $this with PHP 5.0.5 / xDebug 1.3.3dev

From: Derick Rethans <derick[@]xdebug.org>
Date: Thu, 20 Oct 2005 11:51:42 +0200 (CEST)

On Thu, 20 Oct 2005, Christof J. Reetz wrote:

> I'm unable to get the value of the $this variable when being inside a class
> member function.
>
> I'm using PHP 5.0.5 with the xDebug 1.3.3dev on a linux machine. I've
> compiled both PHP and xDebug myself. xDebug talks with the DGB protocol to my
> client. When the client sends e.g.
>
> print this (even tried print $this)
>
> xDebug answers with
>
> <xdebug><error><code>1032</code><message>This symbol does not exist or is not
> yet initialized.</message></error></xdebug>
>
> The list of local variables with
>
> show
>
> only contains the simple data members of my class.
>
> Any suggestions?

You really should consider upgrading to Xdebug 2.0.0(beta4) as I dont
support 1.3.x anymore. But remember that $this is not a variable in PHP
5, it is a language construct, so it might not be possible at all. You
should be able to use "eval $this" though.

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Thu Oct 20 2005 - 11:51:45 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST