ID: 11833
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating system: any
PHP Version: 4.0.6
Description: Unsufficient docs
I don't agree.
I just disable register_global by setting it Off.
Now I can't acces simply $PHP_SELF - returned string is empty.
When I get $HTTP_SERVER_VARS["PHP_SELF"], the return string is such as the $PHP_SELF
with register_global "On".
Maybe it isn't docs bug, but devel bug?
Previous Comments:
---------------------------------------------------------------------------
[2001-07-02 07:06:16] [EMAIL PROTECTED]
$PHP_SELF is not an environment variable, nor a server variable, it is a special PHP
variable, so it wont be registered in any arrays you listed
---------------------------------------------------------------------------
[2001-07-02 06:53:24] [EMAIL PROTECTED]
There isn't enough information, from which assosiative array we can acces to
predefined variables, when register globals is not set. Espesially $PHP_SELF isn't in
$HTTP_ENV_VARS but $HTTP_SERVER_VARS, which mean not intuos (in my opinion)
localization.
Regards
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11833
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]