helly           Thu Dec 21 22:55:07 2006 UTC

  Modified files:              
    /php-src/ext/standard       var.c 
  Log:
  - Serialization doesn't work with unicode data
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/var.c?r1=1.254&r2=1.255&diff_format=u
Index: php-src/ext/standard/var.c
diff -u php-src/ext/standard/var.c:1.254 php-src/ext/standard/var.c:1.255
--- php-src/ext/standard/var.c:1.254    Wed Dec 20 10:50:45 2006
+++ php-src/ext/standard/var.c  Thu Dec 21 22:55:07 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: var.c,v 1.254 2006/12/20 10:50:45 dmitry Exp $ */
+/* $Id: var.c,v 1.255 2006/12/21 22:55:07 helly Exp $ */
 
 
 
@@ -990,11 +990,8 @@
                                        
                                                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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to