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

From: Date: Wed, 24 Nov 2004 12:36:15 +0000
Subject: #30446 [Opn]: virtual() includes files out of sequence
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69399@lists.php.net to get a copy of this message
ID: 30446 User updated by: per at computer dot org 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: Also present in 4.3.10RC1 Previous Comments: ------------------------------------------------------------------------ [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 (#69399) next »