php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6506 ob_start() and output_buffering collide
Submitted: 2000-09-02 16:46 UTC Modified: 2000-09-03 06:03 UTC
From: m dot pohl at gmx dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.2 OS: Linux 2.2.16
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: m dot pohl at gmx dot de
New email:
PHP Version: OS:

 

 [2000-09-02 16:46 UTC] m dot pohl at gmx dot de
Hi,

while testing the latest version 4.0.2 i discovered that explicitly activating output buffering while the global flag "output_buffering" is on, breaks the output. This bugs is new and not in 4.0.1pl2.

The following small script show this effect 

<?php
ob_start();

print "<br>";
?>

if you set output_buffering=On, you will get no output.

Marc


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-03 06:03 UTC] stas@php.net
I guess you should do ob_end if you did ob_start...
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 22:00:01 2026 UTC