#30446 [Opn->Fbk]: virtual() includes files out of sequence

From: Date: Thu, 02 Dec 2004 02:30:41 +0000
Subject: #30446 [Opn->Fbk]: virtual() includes files out of sequence
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69710@lists.php.net to get a copy of this message
ID: 30446 Updated by: sniper@php.net Reported By: per at computer dot org -Status: Open +Status: Feedback -Bug Type: Unknown/Other Function +Bug Type: Apache related Operating System: linux 2.4.26 PHP Version: 4.3.9 New Comment: What Apache version are you using? Previous Comments: ------------------------------------------------------------------------ [2004-11-24 13:36:13] per at computer dot org Also present in 4.3.10RC1 ------------------------------------------------------------------------ [2004-10-25 12:13:19] michele at borioli dot net Got the same error on Win 2k platform. OS: Windows 2000 SP3 (5.00.2195) PHP: 5.0.1 APACHE: 2.0.1 ------------------------------------------------------------------------ [2004-10-16 00:46:05] kulphp at akaukul dot co dot uk 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). ------------------------------------------------------------------------ [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 (#69710) next »