ID:               30446
 Comment by:       kulphp at akaukul dot co dot uk
 Reported By:      per at computer dot org
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: linux 2.4.26
 PHP Version:      4.3.9
 New Comment:

This I have found this only happens when using multiviews
(content-negotiation), and the same(both examples below) as a .shtml
works correctly.

<?php virtual("/inc/_menu.html.en");?>  works ok and places the content
in the correct place (NOT using mutliviews)

<?php virtual("/inc/_menu");?> places the content at the very beginning
of the output, and in front(very top of results) of where it was called
(using mutliviews).


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

[2004-10-15 12:25:38] per at computer dot org

Description:
------------
virtual() seems to put included code/text in the wrong place.  I'm
guessing this is possibly related to bug#30445. 

Reproduce code:
---------------
<html>
<head><title></title></head
<body>
<p>Line0</p1>
<?php
        virtual("i1");
?>
<p>Line2</p>
</body>

----
i1.html:
<p>Line1</p>


Expected result:
----------------
<html>
<head><title></title></head
><body>
<p>Line0</p>
<p>Line1</p>
<p>Line2</p>
</body>

Actual result:
--------------
<p>Line1</p>
<html>
<head><title></title></head
><body>
<p>Line0</p>
<p>Line2</p>
</body>


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


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

Reply via email to