ID:               26860
 Comment by:       mitya at alesh dot ru
 Reported By:      stanislas dot removethis dot renan at volcane dot fr
 Status:           Bogus
 Bug Type:         Output Control
 Operating System: linux 2.4
 PHP Version:      4.3.4
 New Comment:

PHP Version 4.3.8, FreeBSD 4.10-STABLE, Same Error!


Previous Comments:
------------------------------------------------------------------------

[2004-01-10 20:19:08] [EMAIL PROTECTED]

4.1.2 is too old. Works fine with latest release.


------------------------------------------------------------------------

[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

Reply via email to