From: makull at freemail dot nl Operating system: Windows 2000 PHP version: 4.3.3 PHP Bug Type: IIS related Bug description: Error including a PHP file from within an SSI
Description: ------------ If you use any PHP version above 4.2.3, including a PHP file from within a SSI file using '#exec cgi' or '#include virtual' will fail and either result in the raw source code of the PHP script or in machine code. If you go back to PHP 4.2.3 using '#exec cgi' to include a PHP file works perfectly. This is on a Windows 2000 server using IIS 5 and all the latest service packs and patches. Reproduce code: --------------- Lines from the SSI file (.shtml) : <!--#exec cgi="test.php"--> <!--#virtual include="test.php"--> Expected result: ---------------- Expected result : The output of the PHP script in HTML (the output is correct when you run it directly). Actual result: -------------- Actual result : Either the source code from the PHP script (virtual include) or machine code (exec cgi). -- Edit bug report at http://bugs.php.net/?id=25645&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25645&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25645&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25645&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25645&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25645&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25645&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25645&r=support Expected behavior: http://bugs.php.net/fix.php?id=25645&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25645&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25645&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25645&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25645&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25645&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25645&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25645&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25645&r=float