From: yergashbaev at yahoo dot com Operating system: Debian Linux PHP version: 5.2.3 PHP Bug Type: WDDX related Bug description: incorrect serialization of non-latin utf-8 encoded data by wddx_serialize_value
Description: ------------ After code was ported from php 5.1.6 to php 5.2.0-8+etch4 and the webserver was updated to Apache 2.2, a bug traced to the wddx_serialize_value function appeared. The input utf-8-encoded Russian-alphabet data is incorrectly serialized into xml which breaks all encoding. The output is correct under Windows with php 5.1.4 and apache 2.0.59 inslalled. Tried to set different locales on the production server ('ru_RU', 'rus_RUS', 'ru_RU.UTF8', 'ru_RU.CP1251'), but none worked. Reproduce code: --------------- //values logged before the function show up properly $text = wddx_serialize_value($this->result); //if $text is logged, the encoding is broken -- Edit bug report at http://bugs.php.net/?id=41722&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41722&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41722&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41722&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41722&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41722&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41722&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41722&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41722&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41722&r=support Expected behavior: http://bugs.php.net/fix.php?id=41722&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41722&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41722&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41722&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41722&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41722&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41722&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41722&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41722&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41722&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41722&r=mysqlcfg