php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3044 Your PATH_INFO, PATH_TRANSLATED are wrong...
Submitted: 1999-12-24 15:46 UTC Modified: 2000-07-23 02:29 UTC
From: andrey at cherezov dot koenig dot su Assigned:
Status: Closed Package: Misbehaving function
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 15:46 UTC] andrey at cherezov dot koenig dot su
As addition to bug report id=3042.
I've viewed the PHP4 sources and see - you're incorrect
interpret the PATH_INFO and PATH_TRANSLATED CGI-environment 
variables. They are empty in the most cases of requests,
see samples at http://hoohoo.ncsa.uiuc.edu/cgi/examples.html,
but you expected they are contain something to help you
build the path for opening source *.php-file?
It is wrong, IMHO. Path must be constructed
from <CurrentDir><finename_given_in_the_command_line>

If PATH_INFO, PATH_TRANSLATED, doc_root and user_dir are
empty, php.exe failed to open the input source file.
But must open, because these variables are not required
in right CGI. See Perl and PHP3 ;)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-23 02:29 UTC] zak at cvs dot php dot net
Closing Bug Report
Parent bug report 3042 already closed.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 04:00:02 2026 UTC