From: lunter at interia dot pl Operating system: all PHP version: 6CVS-2009-01-20 (snap) PHP Bug Type: Unicode Engine related Bug description: uncomfortable (binary)char() append to binary string
Description: ------------ uncomfortable (binary)char() append to a binary string Reproduce code: --------------- $b=(binary)''; $b.=chr(255); $b.=chr(254); $b.=chr(253); $b.=chr(252); $b.=chr(251); ... $b.=chr(0); Expected result: ---------------- detect $b type as binary string and adding chr() in binary mode like this: $b=(binary)''; $b.=(binary)chr(255); $b.=(binary)chr(254); $b.=(binary)chr(253); $b.=(binary)chr(252); $b.=(binary)chr(251); ... $b.=(binary)chr(0); Actual result: -------------- adding chr() in unicode -- Edit bug report at http://bugs.php.net/?id=47164&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47164&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47164&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47164&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47164&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47164&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47164&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47164&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47164&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47164&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47164&r=support Expected behavior: http://bugs.php.net/fix.php?id=47164&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47164&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47164&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47164&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47164&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47164&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47164&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47164&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47164&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47164&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47164&r=mysqlcfg