Req #16437 [Opn->Wfx]: Reference to function namespace variables

From: Date: Fri, 31 Dec 2010 23:27:11 +0000
Subject: Req #16437 [Opn->Wfx]: Reference to function namespace variables
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157442@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=16437&edit=1

 ID:                 16437
 Updated by:         jani@php.net
 Reported by:        nathan at cjhunter dot com
 Summary:            Reference to function namespace variables
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            Scripting Engine problem
 Operating System:   Linux
 PHP Version:        4.1.2
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2002-04-04 18:51:15] 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;
)

------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=16437&edit=1


Thread (2 messages)

« previous php.bugs (#157442) next »