View Issue Details

IDProjectCategoryView StatusLast Update
0000153XdebugUncategorizedpublic2020-03-12 17:07
Reportersebastian Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionopen 
Summary0000153: 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.

TagsNo tags attached.
Operating SystemIrrelevant
PHP Version5.1.0-dev

Activities

derick

2005-12-30 16:33

administrator   ~0000319

Fixed in CVS

Issue History

Date Modified Username Field Change
2005-10-07 09:18 sebastian New Issue
2005-12-30 16:33 derick Status new => closed
2005-12-30 16:33 derick Note Added: 0000319
2020-03-12 16:56 derick Severity trivial => feature
2020-03-12 17:07 derick Category Feature/Change request => Uncategorized