Date: 04/09/01
- Next message: Carsten Gehling: "Re: [PHP-DEV] PHP 4.0 Bug #10225 Updated: I have"
- Previous message: shmengie_2000 <email protected>: "[PHP-DEV] PHP 4.0 Bug #9857 Updated: define("named_constant")"
- In reply to: Alexander Feldman: "Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS when register_globals = on"
- Next in thread: Carsten Gehling: "Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS whenregister_globals = on"
- Reply: Carsten Gehling: "Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS whenregister_globals = on"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Carsten Gehling: "Re: [PHP-DEV] PHP 4.0 Bug #10225 Updated: I have"
- Previous message: shmengie_2000 <email protected>: "[PHP-DEV] PHP 4.0 Bug #9857 Updated: define("named_constant")"
- In reply to: Alexander Feldman: "Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS when register_globals = on"
- Next in thread: Carsten Gehling: "Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS whenregister_globals = on"
- Reply: Carsten Gehling: "Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS whenregister_globals = on"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

