php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3045 Yes, it is bacause PATH_TRANSLATED...
Submitted: 1999-12-24 20:35 UTC Modified: 2000-06-28 14:19 UTC
From: andrey at cherezov dot koenig dot su Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 3 OS: Windows98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrey at cherezov dot koenig dot su
New email:
PHP Version: OS:

 

 [1999-12-24 20:35 UTC] andrey at cherezov dot koenig dot su
Addition to bug report id 3042, 3044.
Yes, if my web-server (Eserv/2.91) set value
of PATH_TRANSLATED to the same string as in the
command line of PHP.EXE (v4), i.e. script filename,
PHP4 opens this script OK and runs OK.
But... please re-read the CGI specifications:
PATH_TRANSLATED is NOT for script filename...

From CGI docs:
For example, the URL "http://host/dir/foo.cgi/stuff1/stuff2/stuff3" would have "wnroot/stuff1/stuff2/stuff3" in the PATH_TRANSLATED variable. 
---------------
PATH_INFO 
Extra information in the "path" of a CGI URL. More precisely everything after the actual name of the program. For example, the URL "http://host/dir/foo.cgi/stuff1/stuff2/stuff3" would have "/stuff1/stuff2/stuff3" in the PATH_INFO variable. 

PATH_TRANSLATED 
This assumes that PATH_INFO is the path of a file relative to your root and provides the path relative to the system root. For example, the URL "http://host/dir/foo.cgi/stuff1/stuff2/stuff3" would have "wnroot/stuff1/stuff2/stuff3" in the PATH_TRANSLATED variable. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-28 14:19 UTC] andi at cvs dot php dot net
Please check PHP 4.0.1 when it is released tomorrow. This should be fixed. If you still have problems please open a new bug report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 08:01:30 2025 UTC