php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26860 virtual and ob_handler conflict
Submitted: 2004-01-10 10:54 UTC Modified: 2004-01-10 20:19 UTC
From: stanislas dot removethis dot renan at volcane dot fr Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.4 OS: linux 2.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stanislas dot removethis dot renan at volcane dot fr
New email:
PHP Version: OS:

 

 [2004-01-10 10:54 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-10 20:19 UTC] sniper@php.net
4.1.2 is too old. Works fine with latest release.

 [2004-09-21 08:48 UTC] mitya at alesh dot ru
PHP Version 4.3.8, FreeBSD 4.10-STABLE, Same Error!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC