httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35868] New: - PHP run as CGI in SSI doesn't show output
Date Tue, 26 Jul 2005 14:01:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35868>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35868

           Summary: PHP run as CGI in SSI doesn't show output
           Product: Apache httpd-2.0
           Version: 2.0.54
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: mod_cgi
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: slimandslam@gmail.com


Description:
------------
When running PHP 5.04 as a CGI under Apache 2, PHP files included in
Server-Side includes don't show their output.
Note that the PHP files in SSI *are* executed, but the output is never
shown.

Running PHP 5.04 as an Apache module works as expected -- the output of
the PHP files in a SSI is displayed.

Reproduce code:
---------------
To reproduce, make sure you are running PHP 5.04 as a CGI. Setup your
Apache 2 web server to work with Server-Side Includes using the file
extension ".shtml".

The file we'll run is called "junk.shtml" :

<html>
<body>
<!--#include virtual="./junk.php" -->
</body>
</html>

In the same directory as junk.shtml, put the file "junk.php":

<?php
echo "FUN FUN FUN";
?>

Expected result:
----------------
FUN FUN FUN

Actual result:
--------------
[BLANK PAGE]

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message