[xdebug-dev] Bug 0000153: get_declared_vars()

From: <xdebug-dev[@]lists.xdebug.org>
Date: Fri, 30 Dec 2005 16:33:42 +0100

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000153
======================================================================
Reporter: sebastian
Handler:
======================================================================
Project: Xdebug
Bug ID: 153
Category: Feature/Change request
Reproducibility: always
Severity: trivial
Priority: normal
Status: closed
Operating System: Irrelevant
PHP Version: 5.1.0-dev
Xdebug Version: 2.0-dev
======================================================================
Date Submitted: 2005-10-07 10:18 CEST
Last Modified: 2005-12-30 16:33 CET
======================================================================
Summary: get_declared_vars()
Description:
I am´trying to solve this PHPUnit issue

   http://pear.php.net/bugs/bug.php?id=5053

The problem is that the sourcefile that contains the test case class is
include()d within a method. Thus any global variable defined in the source
is local to the PHPUnit method that calls include().

The only solution I see would be a PHP function like get_declared_vars()
that returns the names of all variables visible in the current scope. I
could then call this function before and after the inclusion and compare
the two results to see which new variables came from the included file and
copy them to $GLOBALS.

This is a request to add a get_declared_vars() function to Xdebug.
======================================================================

----------------------------------------------------------------------
 derick - 2005-12-30 16:33 CET
----------------------------------------------------------------------
Fixed in CVS

Bug History
Date Modified Username Field Change
======================================================================
2005-10-07 10:18sebastian New Bug
2005-10-07 10:18sebastian Bug Monitored: sebastian
2005-12-30 16:33derick Bugnote Added: 0000319
2005-12-30 16:33derick Status new => closed
======================================================================
Received on Fri Dec 30 2005 - 16:33:46 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST