#26860 [Opn->Bgs]: virtual and ob_handler conflict
| From: | sniper@php.net | Date: | Sun, 11 Jan 2004 01:19:09 +0000 |
| Subject: | #26860 [Opn->Bgs]: virtual and ob_handler conflict | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53087@lists.php.net to get a copy of this message | ||
ID: 26860
Updated by: sniper@php.net
Reported By: stanislas dot removethis dot renan at volcane dot fr
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: linux 2.4
PHP Version: 4.3.4
New Comment:
4.1.2 is too old. Works fine with latest release.
Previous Comments:
------------------------------------------------------------------------
[2004-01-10 10:54:39] stanislas dot removethis dot renan at volcane dot
fr
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26860&edit=1