smart_str_append_long(buf, serialized_length);
smart_str_appendl(buf, ":{", 2);
- if (UG(unicode)) {
- php_var_serialize_ustr(buf, (UChar*)serialized_data, serialized_length);
- } else {
- smart_str_appendl(buf, serialized_data, serialized_length);
- }
+ /* we need non binary or ascii at least not unicode */
+ smart_str_appendl(buf, serialized_data, serialized_length);
smart_str_appendc(buf, '}');
} else {
smart_str_appendl(buf, "N;", 2);