php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5892 introducing a $LOCALS array
Submitted: 2000-08-01 10:46 UTC Modified: 2000-12-17 00:11 UTC
From: waldschrott@php.net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (01/08/2000) OS: irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: waldschrott@php.net
New email:
PHP Version: OS:

 

 [2000-08-01 10:46 UTC] waldschrott@php.net
Enhancement to make debugging much easier:

Is it anyhow possible to pull out the local scope out of PHP? I`m sometimes using var_dump($GLOBALS) and I think var_dump($LOCALS) could be useful too.
Eg. if you?ve function calls and you want to know all parameters passed.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-22 15:10 UTC] waldschrott@php.net
won't fix this way
 [2000-12-16 13:28 UTC] waldschrott@php.net
additional user requested comment:

introducing a $LOCALS variable would be an evident slowdown,
thus implementing this is not affordable 
 [2000-12-17 00:11 UTC] waldschrott@php.net
was fixed another way:

get_defined_vars();
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 15:00:01 2026 UTC