php-developer-list | 2001122
Date: 12/28/01
- Next message: Brad House: "[PHP-DEV] CVS Account Request: bradmssw"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] References - good or bad"
- In reply to: abraham_guyt <email protected>: "[PHP-DEV] Bug #14734: default HTTP vars and PHP_SELF not available"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 14734
Updated by: goba
Reported By: abraham_guyt <email protected>
Status: Open
Bug Type: Documentation problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:
Tested again. Yes you are right. It would be good
to have it listed only in _SERVER, as the other vars.
Previous Comments:
------------------------------------------------------------------------
[2001-12-28 10:29:47] mfischer <email protected>
It's printed in _SERVER too (apache 1.3.22/php 4.1.0).
------------------------------------------------------------------------
[2001-12-28 10:17:17] goba <email protected>
Just a note: in the PHP 4.1.0 phpinfo() output, all the
predefined vars are printed as _SERVER and _ENV members,
except PHP_SELF, it is printed alone, and not in any
array. This must be corrected!
------------------------------------------------------------------------
[2001-12-28 10:05:28] mfischer <email protected>
Valid point. I'm reopening this as a documentation problem.
------------------------------------------------------------------------
[2001-12-28 10:01:35] abraham_guyt <email protected>
Hi All,
Thanks for the replies. The docs tell me that using globally registered vars presents a security risk and is being turned off in future versions anyway, so it's quite necessary to get accustomed to it.
Using $_SERVER['PHP_SELF'] must be the way to go.
However, where to find proper documentation on these 'new' vars ? I can't find them, only some pages mentioning they exist..
------------------------------------------------------------------------
[2001-12-28 09:56:13] mfischer <email protected>
The correct way would be to use $_SERVER['PHP_SELF'] ; this is guaranteed to work with and without register_globals = off.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14734
Edit this bug report at http://bugs.php.net/?id=14734&edit=1
-- 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: Brad House: "[PHP-DEV] CVS Account Request: bradmssw"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] References - good or bad"
- In reply to: abraham_guyt <email protected>: "[PHP-DEV] Bug #14734: default HTTP vars and PHP_SELF not available"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

