Bug #52742 [Opn->Fbk]: PHP 5.2.14 messes up SCRIPT_FILENAME
Edit report at http://bugs.php.net/bug.php?id=52742&edit=1
ID: 52742
Updated by: srinatar@php.net
Reported by: mfurdyk at takingitglobal dot org
Summary: PHP 5.2.14 messes up SCRIPT_FILENAME
-Status: Open
+Status: Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: RHEL
PHP Version: 5.2.14
Block user comment: N
New Comment:
i believe, you need to include --enable-force-cgi-redirect configuration
flag while compiling with fastcgi support to overcome this.
Previous Comments:
------------------------------------------------------------------------
[2010-08-30 17:36:31] mfurdyk at takingitglobal dot org
Description:
------------
After upgrading from 5.2.6 to 5.2.14, our SCRIPT_FILENAME and
SCRIPT_NAME seem
to be getting broken. Running as FastCGI:
From phpinfo():
5.2.14
_SERVER["SCRIPT_FILENAME"] /dev/null/phpinfo.html
_SERVER["SCRIPT_NAME"] /fcgi-bin/php
5.2.6 (still running on 2/3 servers)
_SERVER["SCRIPT_FILENAME"] /sites/takingitglobal.admin.v5/phpinfo.html
_SERVER["SCRIPT_NAME"] /phpinfo.html
Compile string:
'./configure' '--with-mysql=/usr' '--with-libdir=lib64'
'--with-zlib'
'--with-
gd' '--enable-inline-optimization' '--with-curl'
'--disable-debug'
'--with-
mcrypt=/usr/local/src/libmcrypt-2.5.7' '--with-mhash' '--enable-ftp'
'--enable-
zend-multibyte' '--enable-fastcgi' '--enable-mbstring'
'--with-freetype-
dir=/usr' '--with-gmp' '--with-openssl' '--with-jpeg-dir=/opt'
'--with-png-
dir=/opt' '--enable-sockets'
Expected result:
----------------
See what 5.2.6 returns
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52742&edit=1
Thread (7 messages)