Bug #12475 Updated: the variable $PHP_SELF is not set.
| From: | philip@php.net | Date: | Tue, 14 May 2002 18:33:58 +0000 |
| Subject: | Bug #12475 Updated: the variable $PHP_SELF is not set. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-7657@lists.php.net to get a copy of this message | ||
ID: 12475
Updated by: philip@php.net
Reported By: remco@panviva.com
Status: Closed
Bug Type: Variables related
Operating System: Windows 2000 Server
PHP Version: 4.0.6
New Comment:
Typically register_globals = on is what creates $PHP_SELF.
register_globals affects many variables, SERVER ones too.
If you really want $PHP_SELF to exist then try:
if (!ini_get('register_globals')) {
extract($HTTP_SERVER_VARS);
}
This may or may not be a solution to the original bug report, but is
regarding Oliver's and perhaps Jeff's.
Previous Comments:
------------------------------------------------------------------------
[2002-05-14 07:30:15] oliver.vesper@ollinux.de
but you can use $_SERVER['PHP_SELF'] to access PHP_SELF. maybe
$PHP_SELF doesn't exist anymore?!
------------------------------------------------------------------------
[2002-05-14 07:27:57] oliver.vesper@ollinux.de
I had the same problem using PHP 4.1.2 and still have the problem using
4.2.1. Platform is Linux and Apache 1.3.24.
------------------------------------------------------------------------
[2002-02-23 12:00:00] jeff11@gondon.net
Hi. I also have this Problem, even with the newest version of PHP
(4.1.1, using the *.msi file). I'm using Xitami, but I can't be that,
because when using PHP3, all works well.
Is there a fix?
------------------------------------------------------------------------
[2002-01-14 02:07:49] lobbin@php.net
No feedback, closing.
------------------------------------------------------------------------
[2001-12-24 10:06:34] sander@php.net
Can you try 4.1.0 or even 4.1.1 (when it's out) or the latest CVS
(snaps.php.net)?
------------------------------------------------------------------------
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/12475
--
Edit this bug report at http://bugs.php.net/?id=12475&edit=1