#26862 [Opn->Ver]: ob_flush() doens't ouput last two chars

From: Date: Sun, 11 Jan 2004 01:24:29 +0000
Subject: #26862 [Opn->Ver]: ob_flush() doens't ouput last two chars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53088@lists.php.net to get a copy of this message
 ID:               26862
 Updated by:       sniper@php.net
 Reported By:      nunoplopes at sapo dot pt
-Status:           Open
+Status:           Verified
 Bug Type:         Output Control
 Operating System: Win XP
-PHP Version:      4CVS-2004-01-10 (stable)
+PHP Version:      4CVS, 5CVS


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

[2004-01-10 11:42:24] nunoplopes at sapo dot pt

Description:
------------
When using the given code, ob_flush() doesn't output all the buffer.
When using ob_get_flush() it works as expected.

Reproduce code:
---------------
<?php
session_start();
output_add_rewrite_var('var', 'value');

echo '<a href="file.php">link</a>';

ob_flush();

output_reset_rewrite_vars();
echo '<a href="file.php">link</a>';
?>

Expected result:
----------------
<a href="file.php?SESSID=xxx&var=value">link</a><a
href="file.php">link</a>

Actual result:
--------------
<a href="file.php?SESSID=xxx&var=value">link</<a
href="file.php">link</a>


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


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


Thread (6 messages)

« previous php.bugs (#53088) next »