#26507 [Opn->Bgs]: ob_end_flush behaviour change

From: Date: Wed, 03 Dec 2003 03:27:38 +0000
Subject: #26507 [Opn->Bgs]: ob_end_flush behaviour change
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51608@lists.php.net to get a copy of this message
 ID:               26507
 Updated by:       iliaa@php.net
 Reported By:      michael at tapinternet dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Output Control
 Operating System: debian linux
 PHP Version:      4.3.4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

PHP does not trim output.


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

[2003-12-02 18:56:59] michael at tapinternet dot com

Description:
------------
ob_end_flush used to completely trim all output that had been
collected, including whitespace at the end of previously included
files.  That's not happening after an upgrade to PHP 4.3.4 (from
4.3.1).  

EXAMPLE:
test.php
<?
$foo='';
?>
     <--- note whitespace here



bar.php
<?
include('test.php');
ob_end_flush();
header("Content-type: application/ms-word");
echo "foobar";
?>

'foobar' will have a linebreak *before* it, even though the
ob_end_flush() function has been called.



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


-- 
Edit this bug report at http://bugs.php.net/?id=26507&edit=1


Thread (3 messages)

« previous php.bugs (#51608) next »