php-developer-list | 2001122
Date: 12/21/01
- Next message: Zeev Suraski: "Re: [PHP-DEV] Bug in 4.1.0; _SESSION"
- Previous message: sander <email protected>: "[PHP-DEV] Bug #14636 Updated: Session variables are lost when redirecting to a url using header() function."
- In reply to: Andreas Aderhold: "[PHP-DEV] Bug in 4.1.0; _SESSION"
- Next in thread: Andreas Aderhold: "RE: [PHP-DEV] Bug in 4.1.0; _SESSION"
- Reply: Andreas Aderhold: "RE: [PHP-DEV] Bug in 4.1.0; _SESSION"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I guess this bug needs to be fixed somehow but I'd probably just not allow
it to be defined as global. The whole reason for making it an auto-global
was so that it'll be easy to use. People know (and will know) that
$_SESSION is a global. I think your explicit marking of it as a global is
not a good idea and doesn't really give you anything. Why not just add a
comment if you really feel it is needed?
Andi
At 01:59 PM 12/21/2001 +0100, Andreas Aderhold wrote:
>Hi All,
>
>found a bug
>
>this one will cause a infinte loop in 4.1:
><?php
>global $_SESSION; // this will cause a infinite loop
>session_start();
>phpinfo()
>?>
>Te docs say that $_SESSION is auto-global in 4.1.0 but it does not say, that
>the explicit global declaration is not allowed. However I would like to use
>the explicit global declaration for improved code readbility.
>
>Andi
>
>--
>www.binarycloud.com
>
>
>
>
>--
>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>
-- 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: Zeev Suraski: "Re: [PHP-DEV] Bug in 4.1.0; _SESSION"
- Previous message: sander <email protected>: "[PHP-DEV] Bug #14636 Updated: Session variables are lost when redirecting to a url using header() function."
- In reply to: Andreas Aderhold: "[PHP-DEV] Bug in 4.1.0; _SESSION"
- Next in thread: Andreas Aderhold: "RE: [PHP-DEV] Bug in 4.1.0; _SESSION"
- Reply: Andreas Aderhold: "RE: [PHP-DEV] Bug in 4.1.0; _SESSION"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

