#35664 [NEW]: SSI multiple virtual includes of php causes segfault

From: Date: Tue, 13 Dec 2005 23:25:41 +0000
Subject: #35664 [NEW]: SSI multiple virtual includes of php causes segfault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90401@lists.php.net to get a copy of this message
From:             phpbr1 at dusty dot name
Operating system: FreeBSD 6.0
PHP version:      5.1.1
PHP Bug Type:     Apache2 related
Bug description:  SSI multiple virtual includes of php causes segfault

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 bug report at http://bugs.php.net/?id=35664&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35664&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35664&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35664&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35664&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35664&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35664&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35664&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35664&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35664&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35664&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35664&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35664&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35664&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35664&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35664&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35664&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35664&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35664&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35664&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35664&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#90401) next »