Re: Request for new feature: $HTTP_SESSION_VARS whenregister_globals = on

From: Date: Mon, 09 Apr 2001 07:31:51 +0000
Subject: Re: Request for new feature: $HTTP_SESSION_VARS whenregister_globals = on
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-51170@lists.php.net to get a copy of this message
From: "Alexander Feldman" <alex@zend.com> Sent: Friday, April 06, 2001 10:46 PM > Hm, very strange. You are absolutely right - I do not see any problems as > well. Not only with the current cvs but with the older phps also... But I > am sure I have seen some time ago exactly what was described by Carsten > Gehling. Maybe it is kind of group hallucination ;) Try this: =========================== <?php session_start(); session_register("c"); $HTTP_SESSION_VARS["c"] = $HTTP_SESSION_VARS["c"] + 1; var_dump($HTTP_SESSION_VARS); ?> =========================== And try reloading the page a couple of times. With register_globals = Off, the session variable "c" will be incrementing by one on each reload. With register_globals = On, it will always be 1 (thereby showing, that it does not exist when reloading). - Carsten

« previous php.dev (#51170) next »