Last two bytes missing from output
| Bug #44394 | Last two bytes missing from output | ||||
|---|---|---|---|---|---|
| Submitted: | 2008-03-10 16:03 UTC | Modified: | 2008-03-12 02:46 UTC | ||
| From: | weirdan at gmail dot com | Assigned: | |||
| Status: | Closed | Package: | Output Control | ||
| PHP Version: | 5.2.6RC2 | OS: | Windows XP | ||
| Private report: | No | CVE-ID: | None | ||
[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</
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-03-11 22:31 UTC] weirdan at gmail dot com
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...[2008-03-12 02:46 UTC] felipe@php.net
[2013-04-14 16:23 UTC] pbxanime at gmail dot com
[2015-07-10 11:33 UTC] spam2 at rhsoft dot net
[2015-07-10 11:33 UTC] spam2 at rhsoft dot net
[2015-07-10 13:21 UTC] spam2 at rhsoft dot net
[2015-07-10 13:21 UTC] spam2 at rhsoft dot net