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 [url]http://bugs.php.net/?id=25645&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25645&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25645&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25645&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25645&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25645&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25645&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25645&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25645&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25645&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25645&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25645&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25645&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25645&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25645&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25645&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25645&r=float[/url]