Bug #52742 [Opn]: PHP 5.2.14 messes up SCRIPT_FILENAME

From: Date: Tue, 31 Aug 2010 18:28:46 +0000
Subject: Bug #52742 [Opn]: PHP 5.2.14 messes up SCRIPT_FILENAME
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153980@lists.php.net to get a copy of this message
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
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   RHEL
 PHP Version:        5.2.14
 Block user comment: N

 New Comment:

how is your web server configured ? and what web server r u using ?


Previous Comments:
------------------------------------------------------------------------
[2010-08-31 01:51:11] mfurdyk at takingitglobal dot org

FYI, I also noticed that make test doesn't work, in case that's
relevant...

[root@tigweb3 php-5.2.14]# make test

Build complete.
Don't forget to run 'make test'.

make: [test] Error 255 (ignored)

------------------------------------------------------------------------
[2010-08-31 00:45:17] mfurdyk at takingitglobal dot org

Recompiled:

'./configure' '--with-mysql=/usr/include/mysql' '--with-zlib'
'--with-gd' '--
with-jpeg-dir' '--with-png-dir' '--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'
'--enable-sockets'
'--
with-libdir=lib64' '--enable-force-cgi-redirect'

Result is the same:

_SERVER["SCRIPT_FILENAME"]	/dev/null/phpinfo.html
_SERVER["SCRIPT_NAME"]	/fcgi-bin/php

------------------------------------------------------------------------
[2010-08-31 00:25:01] srinatar@php.net

i believe, you need to include --enable-force-cgi-redirect configuration
flag while compiling with fastcgi support to overcome this.

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

« previous php.bugs (#153980) next »