#44394 [NEW]: Last two bytes missing from output
| From: | weirdan at gmail dot com | Date: | Mon, 10 Mar 2008 16:03:29 +0000 |
| Subject: | #44394 [NEW]: Last two bytes missing from output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-123137@lists.php.net to get a copy of this message | ||
From: weirdan at gmail dot com
Operating system: Windows XP
PHP version: 5.2.5
PHP Bug Type: Output Control
Bug description: Last two bytes missing from output
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</
--
Edit bug report at http://bugs.php.net/?id=44394&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44394&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44394&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44394&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44394&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44394&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44394&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44394&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44394&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44394&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44394&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44394&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44394&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44394&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44394&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44394&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44394&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44394&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44394&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44394&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44394&r=mysqlcfg