php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18357 $PATH_INFO,$SCRIPT_NAME not set
Submitted: 2002-07-15 12:06 UTC Modified: 2002-07-15 13:28 UTC
From: tonic at nondot dot org Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.1 OS: Linux 2.2.17-21mdk
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: tonic at nondot dot org
New email:
PHP Version: OS:

 

 [2002-07-15 12:06 UTC] tonic at nondot dot org
The $PATH_INFO and $SCRIPT_NAME variables appear to not be set. I can get access to it by using $HTTP_SERVER_VARS["PATH_INFO"] or $HTTP_SERVER_VARS["SCRIPT_NAME"].

I am using Apache 2.0.36 (I tried to use 2.0.39 but PHP would not compile, which is another issue). I have used this setup before on Linux 2.4 and it worked fine..

Please let me know what other information I can provide.

-Tanya

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-15 12:09 UTC] edink@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.


 [2002-07-15 12:15 UTC] tonic at nondot dot org
I am terribly sorry.. now I am confused as to why it worked with a snapshot of 4.2.1 (http://www.php.net/~derick/php-4.2.1RC2.tar.bz2).

But anyways.. thanks for clearing that up!!
Thanks for all the hard work of the PHP developers.. you do a great job!

-Tanya
 [2002-07-15 13:28 UTC] philip@php.net
Q: "... why it worked with a snapshot of 4.2.1 ..."

I'm guessing an old version of php.ini was being used as php.ini-dist in that snapshot does have register_globals = off.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC