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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 13:01:32 2024 UTC