php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41722 incorrect serialization of non-latin utf-8 encoded data by wddx_serialize_value
Submitted: 2007-06-18 05:46 UTC Modified: 2007-07-03 01:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: yergashbaev at yahoo dot com Assigned:
Status: No Feedback Package: WDDX related
PHP Version: 5.2.3 OS: Debian Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yergashbaev at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-06-18 05:46 UTC] yergashbaev at yahoo dot com
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-25 18:06 UTC] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2007-07-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 12:01:27 2024 UTC