#27228 [Opn->Bgs]: SSI Including PHP File Within PHP File Causes Seg Fault
| From: | sniper@php.net | Date: | Thu, 12 Feb 2004 15:21:39 +0000 |
| Subject: | #27228 [Opn->Bgs]: SSI Including PHP File Within PHP File Causes Seg Fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54803@lists.php.net to get a copy of this message | ||
ID: 27228
Updated by: sniper@php.net
Reported By: arthur at levelogic dot com
-Status: Open
+Status: Bogus
-Bug Type: Reproducible crash
+Bug Type: Apache2 related
Operating System: RedHat Linux 9
PHP Version: 4.3.4
New Comment:
To make this work you must use PHP's apache2handler module.
But I don't see why you would want to do this anyway,
using 'include()' works much better when you deal with PHP code within
PHP code..
(the crash is not even PHP related I bet..you failed to give a
backtrace so I have to ASSUME..)
Previous Comments:
------------------------------------------------------------------------
[2004-02-11 21:37:23] arthur at levelogic dot com
Description:
------------
Setting up Apache 2.0 to FILTER php files and SSI parse them. When
trying to include a php file from within another php file, I get a seg
fault.
Apache setup as:
<Files *.php>
SetOutputFilter PHP;INCLUDES
SetInputFilter PHP
LimitRequestBody 524288
</Files>
Reproduce code:
---------------
/test1.php
<!--#include virtual="/test2.php" -->
/test2.php
Testing 1 2 3
Expected result:
----------------
Testing 1 2 3
Actual result:
--------------
Seg fault on server and hanging to eventually timeout on client.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27228&edit=1