FW: [PHP-DEV] _SERVER & HTTP_SERVER_VARS
| From: | Emanuel Dejanu | Date: | Wed, 05 Dec 2001 06:50:21 +0000 |
| Subject: | FW: [PHP-DEV] _SERVER & HTTP_SERVER_VARS | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-72545@lists.php.net to get a copy of this message | ||
Hi there,
$_* arrays are a copy of the long GLOBAL vars.
So $_SERVER is a copy of $HTTP_SERVER_VARS or is a reference?
Best regards,
Emanuel Dejanu
-----Original Message-----
From: derick@php.net [mailto:derick@php.net]
Sent: 5 decembrie 2001 08:31
To: Prottoss
Cc: php-dev@lists.php.net
Subject: Re: [PHP-DEV] _SERVER & HTTP_SERVER_VARS
Hello,
The new $_* arrays are also superglobals, ie. you don't need to define
them as 'global $HTTP_POST_VARS;' in your functions. The $_* arrays can be
used everywhere.
Derick
On Tue, 4 Dec 2001, Prottoss wrote:
> I've recently installed php 4.1.0RC5 on a test system and while testing
the
> build came across an interesting fact.
>
> It would appear that the new PHP creates an identical copy of every system
> generated global array, for example _SERVER & HTTP_SERVER_VARS or _COOKIE
&
> HTTP_COOKIE_VARS.
> Is there a reason why those were created twice?
>
> The phpinfo() appears to be using the new format of global arrays, which
> start with _, does this mean the long global array names will be phased
out
> in the near future?
>
> Regards,
>
>
> --
> Prottoss
> webmaster@mediaminer.org
> ICQ: 23361082
> http://mediaminer.org/
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net