Маленький патч к wddx extension php5 решающий проблему с не правильной сериализацией строк в кодировке UTF-8

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
326c326
< php_info_print_table_header(2, "WDDX Support (with UTF-8 fix, patched by DIESEL)", "enabled" );
---
> php_info_print_table_header(2, "WDDX Support", "enabled" );
378c378
< enc = xml_utf8_encode(buf, buf_len, &enc_len, "UTF-8");
---
> enc = xml_utf8_encode(buf, buf_len, &enc_len, "ISO-8859-1");
788,789c788
< decoded = xml_utf8_decode(atts[i], strlen(atts[i]),
< &decoded_len, "UTF-8");
---
> decoded = xml_utf8_decode(atts[i], strlen(atts[i]), &decoded_len, "ISO-8859-1");
810,811c809
< decoded = xml_utf8_decode(atts[i], strlen(atts[i]),
< &decoded_len, "UTF-8");
---
> decoded = xml_utf8_decode(atts[i], strlen(atts[i]), &decoded_len, "ISO-8859-1");
850,851c848
< decoded = xml_utf8_decode(atts[i], strlen(atts[i]),
< &decoded_len, "UTF-8");
---
> decoded = xml_utf8_decode(atts[i], strlen(atts[i]), &decoded_len, "ISO-8859-1");
1036,1037c1033
< decoded = xml_utf8_decode(s, len, &decoded_len,
< "UTF-8");
---
> decoded = xml_utf8_decode(s, len, &decoded_len, "ISO-8859-1");
1121c1117
< parser = XML_ParserCreate("UTF-8");
---
> parser = XML_ParserCreate("ISO-8859-1");