Bug #13925 Updated: SCRIPT_NAME in Apache 1.3.22 wrong (or at least different)
| From: | bate@php.net | Date: | Tue, 13 Nov 2001 22:50:02 +0000 |
| Subject: | Bug #13925 Updated: SCRIPT_NAME in Apache 1.3.22 wrong (or at least different) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70386@lists.php.net to get a copy of this message | ||
ID: 13925
Updated by: bate
Reported By: bobsledbob@yahoo.com
Old Status: Open
Status: Analyzed
Bug Type: Apache related
Operating System: FreeBSD 4.4-Stable
PHP Version: 4.0.6
New Comment:
Checked with latest CVS
and PHP 4.1.0RC1 + RC2
Script Output:
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script/foo/bar/script.php
I checked that too under RedHat + SuSE 7.x
with PHP 4.0.6
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script/foo/bar/script.php
Previous Comments:
------------------------------------------------------------------------
[2001-11-04 21:56:07] bobsledbob@yahoo.com
Hi,
I have a website on an ISP that runs FreeBSD 4.4 with a recently upgraded Apache 1.3.22 webserver
and PHP 4.06 compiled as CGI. My sight relies on the $SCRIPT_NAME PHP global variable. It seems
that this variable is getting set differently with the new Apache? Here's an example:
URL:
http://some.website.com/script/foo/bar
where
script = script.php using Apache multiviews
Before (Apache 1.3.20 / PHP 4.06):
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script
After (Apache 1.3.22 / PHP 4.06):
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script/foo/bar/script.php
I'm sorry I won't be able to give too much detail of this bug because I don't have
too much access to the machine (on the ISP), but let me know how I can help with this issue and
I'd be glad to do what I can.
Thanks.
Adam Taft
bobsledbob@yahoo.com
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13925&edit=1