From: slimandslam at gmail dot com Operating system: FreeBSD 5.4 Stable PHP version: 5.0.4 PHP Bug Type: CGI related Bug description: PHP executed in SSI doesn't show output
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] -- Edit bug report at http://bugs.php.net/?id=33858&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33858&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33858&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33858&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33858&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33858&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33858&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33858&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33858&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33858&r=support Expected behavior: http://bugs.php.net/fix.php?id=33858&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33858&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33858&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33858&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33858&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33858&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33858&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33858&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33858&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33858&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33858&r=mysqlcfg