From: nunoplopes at sapo dot pt Operating system: Win XP PHP version: 4CVS-2004-01-10 (stable) PHP Bug Type: Output Control Bug description: ob_flush() doens't ouput last two chars
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 bug report at http://bugs.php.net/?id=26862&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26862&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26862&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26862&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26862&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26862&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26862&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26862&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26862&r=support Expected behavior: http://bugs.php.net/fix.php?id=26862&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26862&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26862&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26862&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26862&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26862&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26862&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26862&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26862&r=float