Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS whenregister_globals = on From: Carsten Gehling (carsten <email protected>)
Date: 04/09/01

From: "Alexander Feldman" <alex <email protected>>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>