ID: 26862
User updated by: nunoplopes at sapo dot pt
Reported By: nunoplopes at sapo dot pt
Status: Verified
Bug Type: Output Control
Operating System: *
PHP Version: 4CVS, 5CVS
New Comment:
I've checked the sources and if you changed the implementation of
ob_flush everything works:
use this:
php_end_ob_buffer(1, 0 TSRMLS_CC);
instead of:
php_end_ob_buffer(1, 1 TSRMLS_CC);
So, the error is in just_flush in php_end_ob_buffer().
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