#28238 [NEW]: --enable-discard-path prevents PHP from being run as CGI with Apache
| From: | floeff at arcor dot de | Date: | Fri, 30 Apr 2004 17:24:31 +0000 |
| Subject: | #28238 [NEW]: --enable-discard-path prevents PHP from being run as CGI with Apache | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-59074@lists.php.net to get a copy of this message | ||
From: floeff at arcor dot de
Operating system: Linux
PHP version: 4.3.6
PHP Bug Type: CGI related
Bug description: --enable-discard-path prevents PHP from being run as CGI with Apache
Description:
------------
It seems that --enable-discard-path prevents PHP from being run as CGI
with Apache.
My configure options are as follows:
./configure --enable-safe-mode --with-mm --with-mysql
--enable-discard-path --with-exec-dir --enable-memory-limit
--enable-force-cgi-redirect
PHP has been enabled in Apache with these settings in httpd.conf:
<Directory /usr/local/bin>
<Files php>
Order allow,deny
Allow from all
</Files>
</Directory>
ScriptAlias /.php-script/ /usr/local/bin/
AddHandler php-script .php
Action php-script /.php-script/php
This does not work. I receive parse errors for ASCII characters, it seems
that no PHP script is being parsed, but some binary data. As soon as I
remove --enable-discard-path it works fine. I run Apache 2.0.49.
Seems to be related to Bug #18371.
Reproduce code:
---------------
<? phpinfo(); ?>
or any other PHP code.
Expected result:
----------------
Parse error.
Actual result:
--------------
Correct PHP output.
--
Edit bug report at http://bugs.php.net/?id=28238&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28238&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28238&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28238&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28238&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28238&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28238&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28238&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28238&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28238&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28238&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28238&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28238&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28238&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28238&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28238&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28238&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28238&r=float