|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-10 20:19 UTC] sniper@php.net
[2004-09-21 08:48 UTC] mitya at alesh dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 17:00:02 2025 UTC |
Description: ------------ [tested with php 4.1.2 only because my providers disabled virtual() on their 4.3.4 version] It seems that when using both ob_start() and virtual() does not work. Contents of the virtual-ly included file is not parsed through the ob_start() handler function. Even worse : handler of ob_start() is no more used after the call of virtual(). Reproduce code: --------------- === <?php function f($buffer) { return (str_replace('1', '2', $buffer)); } ob_start('f'); ?> 111 <?php virtual('afile.html'); ?> 111 === afile.html : === 111 === Expected result: ---------------- 222 222 222 Actual result: -------------- 222 111 111