php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16437 Reference to function namespace variables
Submitted: 2002-04-04 18:51 UTC Modified: 2011-01-01 00:27 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: nathan at cjhunter dot com Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
40 + 42 = ?
Subscribe to this entry?

 
 [2002-04-04 18:51 UTC] nathan at cjhunter dot com
I request that there be an associative array variable for each function that references the local name space of that function, similar to how the $GLOBALS variable works but endemic only to that function.

Suggestions for possible names for this variable:
$FUNCTION
$_FUNCTION
$LOCAL
$_LOCAL

i.e.

function test(){
  $_FUNCTION['abc'] = 'Hello';
  echo $abc;
}

My reason for requesting this is so that I can have global functions

function test(){
  $_FUNCTION = &$GLOBALS;
)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 00:27 UTC] jani@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: Scripting Engine problem
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC