#22660 [Opn->Fbk]: $_GLOBALS variable

From: Date: Wed, 12 Mar 2003 17:53:21 +0000
Subject: #22660 [Opn->Fbk]: $_GLOBALS variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35447@lists.php.net to get a copy of this message
ID: 22660 Updated by: andrew@php.net Reported By: pierre dot thierry at moine-fou dot org -Status: Open +Status: Feedback Bug Type: Feature/Change Request Operating System: Debian 3.0r1 GNU/Linux 2.4.19 PHP Version: 4.3.1 New Comment: I move to opt against this, as BC would be broken with scripts using $_GLOBALS against an older version of php. It'd be good for consistency, but sometimes we have to substitute consistency for compatibility. $GLOBALS is also kind of a variable of it's own. It contains all globals, as opposed to the individual superglobals containing their sets. $GLOBALS serves it's purpose just fine. ~ Andrew Heebner Previous Comments: ------------------------------------------------------------------------ [2003-03-12 10:15:53] pierre dot thierry at moine-fou dot org For consistency with other autoglobals, $GLOBALS shoudl also be accessible by $_GLOBALS. (or become $_GLOBALS, but this would break many scripts...) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22660&edit=1

« previous php.bugs (#35447) next »