|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2008-03-10 16:03 UTC] weirdan at gmail dot com
 Description: ------------ It seems like a regression of http://bugs.php.net/bug.php?id=26862 - two last bytes missing from output when using ob_flush() + ob_end_clean(). ob_end_flush() works as expected though. The same issue is observed on PHP 5.2.3 / Linux Reproduce code: --------------- <?php $string = "<a href='a?q=1'>asd</a>"; output_add_rewrite_var('a', 'b'); echo $string; ob_flush(); ob_end_clean(); Expected result: ---------------- <a href='a?q=1&a=b'>asd</a> Actual result: -------------- <a href='a?q=1&a=b'>asd</ PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 05:00:02 2025 UTC | 
not fixed on WinXP, tested with this script: <?php echo phpversion() . "\n"; $string = "<a href='a?q=1'>asd</a>"; output_add_rewrite_var('a', 'b'); echo $string; ob_flush(); ob_end_clean(); Results: C:\Windows\system32\cmd.exe /c .\php.exe q.php | more 5.2.6RC3-dev <a href='a?q=1&a=b'>asd</ Hit any key to close this window...