#35664 [Opn->Bgs]: SSI multiple virtual includes of php causes segfault

From: Date: Tue, 13 Dec 2005 23:27:21 +0000
Subject: #35664 [Opn->Bgs]: SSI multiple virtual includes of php causes segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90402@lists.php.net to get a copy of this message
 ID:               35664
 Updated by:       tony2001@php.net
 Reported By:      phpbr1 at dusty dot name
-Status:           Open
+Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: FreeBSD 6.0
 PHP Version:      5.1.1
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #35484.


Previous Comments:
------------------------------------------------------------------------

[2005-12-14 00:25:40] phpbr1 at dusty dot name

Description:
------------
PHP 5.1.1 on FreeBSD 6.0 with Apache 2.2 all installed from ports.  The
problem occurs when I use server side includes in html pages to call a
php page.

If I have a single include, it works fine.  If I have 2 includes, it
segfaults.  It works fine including multiple pages that are not php.


Reproduce code:
---------------
index.html
<html>
<body>
<!--#include virtual="test.php?action=test" -->
<!--#include virtual="test.php?action=test2" -->
</body>
</html>

test.php
<?
print $_GET['action'] . "<br />";
?>

Expected result:
----------------
test
test2

Actual result:
--------------
Nothing appears on page, but this appears in apache logs.

[Tue Dec 13 17:04:16 2005] [notice] child pid 8618 exit signal
Segmentation fault (11)

This does work, if including something like a text file.
<!--#include virtual="test.txt" -->
<!--#include virtual="test2.txt" -->


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35664&edit=1


Thread (2 messages)

« previous php.bugs (#90402) next »