php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18696 Only the first include of php file from shtml works
Submitted: 2002-08-02 02:37 UTC Modified: 2003-02-03 11:39 UTC
From: newsp at jippii dot fi Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.2 OS: Solaris 8
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: newsp at jippii dot fi
New email:
PHP Version: OS:

 

 [2002-08-02 02:37 UTC] newsp at jippii dot fi
I have this wierd problem:  Only the first include of php file from shtml works ok, following ones are not parsed at all.  Is this a bug of apache2 support or something I have misconfigured?

For example if I have following files:

-- test.shtml --
<!--#include virtual="test.php"-->
<!--#include virtual="test.php"-->
-- test.shtml --

and

-- test.php --
<? print "a"; ?>
-- test.php --

the output of test.shtml is:
a<? print "a"; ?>

I have tried following configurations:

--
AddOutputFilter INCLUDES shtml
AddType application/x-httpd-php .php
--

and

--
AddOutputFilter INCLUDES;PHP shtml
--

and

--
AddType application/x-httpd-php .php
AddHandler server-parsed .shtml
--

And the result is always the same.

Is this a bug or feature?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-17 12:42 UTC] aaron@php.net
This looks like a duplicate of bug 17868. Take a look over
there and see if they match what you are seeing.
 [2002-09-09 06:11 UTC] newsp at jippii dot fi
Duplicate to 17868
 [2003-02-03 11:39 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 20:01:29 2024 UTC