ID:               26507
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to