#30446 [Com]: virtual() includes files out of sequence

From: Date: Fri, 15 Oct 2004 22:46:22 +0000
Subject: #30446 [Com]: virtual() includes files out of sequence
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67635@lists.php.net to get a copy of this message
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

« previous php.bugs (#67635) next »