#22233 [Opn->Ver]: "mod_gzip_on yes" makes force-cgi-redirect disabled and incorrect PHP_SELF
| From: | sniper@php.net | Date: | Sun, 16 Feb 2003 00:53:00 +0000 |
| Subject: | #22233 [Opn->Ver]: "mod_gzip_on yes" makes force-cgi-redirect disabled and incorrect PHP_SELF | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33266@lists.php.net to get a copy of this message | ||
ID: 22233
Updated by: sniper@php.net
Reported By: zlo@canada.com
-Status: Open
+Status: Verified
Bug Type: Apache related
Operating System: RedHat 7.1, 7.2
-PHP Version: 4CVS-2003-02-15 (stable)
+PHP Version: 4.3.1-dev
New Comment:
Reproduced with PHP 4.3.1-dev..
Previous Comments:
------------------------------------------------------------------------
[2003-02-15 18:18:36] zlo@canada.com
tried that, apparently it's not fixed.
just compiled php4-STABLE-200302152230, problem is still there.
when i turn on mod_gzip, its works like magic!
------------------------------------------------------------------------
[2003-02-15 17:23:37] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
This should be fixed already.
------------------------------------------------------------------------
[2003-02-15 13:06:48] zlo@canada.com
when "mod_gzip_on yes", PHP's force-cgi-redirect security mechanizm
becomes disabled (urls like /cgi-bin/php/test.php start working) and
PHP_SELF takes on a wrong value (/cgi-bin/php/test.php).
when "mod_gzip_on no", both aspects of the problem disappear.
problem has been observed on 2 different systems.
apache version: 1.3.26, 1.3.27
php version: latest snapshot
mod_gzip version: latest
php.ini does not exist.
php's configure:
./configure \
--with-config-file-path=/path/to/php \
--prefix=/path/to/php \
--enable-force-cgi-redirect \
--disable-cli \
--enable-bcmath \
--enable-trans-sid \
--with-zlib-dir=/build/zlib-1.1.4 \
--with-gd=/build/gd-1.8.4 \
--with-png-dir=/build/png-1.2.4 \
--with-jpeg-dir=/build/jpeg-6b \
--with-freetype \
apache's configure:
./configure \
--prefix=/path/to/apache \
--enable-module=so \
--enable-suexec \
--suexec-caller=www \
--suexec-docroot=/www \
no other modules loaded other than mod_gzip.
i thought this could well be PHP's problem. sorry if i'm wrong, then
please direct me to other possible sources of the problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22233&edit=1