php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35664 SSI multiple virtual includes of php causes segfault
Submitted: 2005-12-14 00:25 UTC Modified: 2005-12-14 00:27 UTC
From: phpbr1 at dusty dot name Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.1 OS: FreeBSD 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phpbr1 at dusty dot name
New email:
PHP Version: OS:

 

 [2005-12-14 00:25 UTC] 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" -->

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-14 00:27 UTC] tony2001@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 21:01:32 2024 UTC