]> granicus.if.org Git - php/commitdiff
- Serialization doesn't work with unicode data
authorMarcus Boerger <helly@php.net>
Thu, 21 Dec 2006 22:55:07 +0000 (22:55 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 21 Dec 2006 22:55:07 +0000 (22:55 +0000)
ext/standard/var.c

index eba7627e9555798e005b9cf7e79ed7738035b505..758b9005fd330bbbd13cd14be68e62c154927a6d 100644 (file)
@@ -990,11 +990,8 @@ static void php_var_serialize_intern(smart_str *buf, zval *struc, HashTable *var
                                        
                                                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);