php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24981 Global Variables
Submitted: 2003-08-08 03:26 UTC Modified: 2003-08-08 04:17 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ctimm at primetimetech dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.2 OS: Windows XP
Private report: No CVE-ID: None
 [2003-08-08 03:26 UTC] ctimm at primetimetech dot com
Description:
------------
In CGI mode, the global variables
$SCRIPT_NAME and $_SERVER['SCRIPT_NAME'] are /php/php.exe and not what they should be. I am using Version 4.3.2 on Windows Xp platform (This is the CGI version)

Reproduce code:
---------------
Replaced All occurences of  $SCRIPT_NAME in the PHP files with $PHP_SELF and that has worked ok


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-08 03:52 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

..
 [2003-08-08 04:17 UTC] ctimm at primetimetech dot com
I am running a script from Sourceforge. When The global variables are set to $Script_Name and you login , the page gets redirected to /php/php.exe and not what it should be. If I change them to $PHP_SELF then they get redirected to the right place. I would say that sounds like a bug...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC