iliaa           Thu May 25 23:23:15 2006 UTC

  Modified files:              
    /php-src/ext/wddx   wddx.c 
    /php-src/ext/wddx/tests     bug37569.phpt 
  Log:
  MFB: Fixed bug #37569 (WDDX incorrectly encodes high-ascii characters).
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/wddx/wddx.c?r1=1.133&r2=1.134&diff_format=u
Index: php-src/ext/wddx/wddx.c
diff -u php-src/ext/wddx/wddx.c:1.133 php-src/ext/wddx/wddx.c:1.134
--- php-src/ext/wddx/wddx.c:1.133       Thu May 25 09:51:58 2006
+++ php-src/ext/wddx/wddx.c     Thu May 25 23:23:15 2006
@@ -16,7 +16,11 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: wddx.c,v 1.133 2006/05/25 09:51:58 helly Exp $ */
+/* $Id: wddx.c,v 1.134 2006/05/25 23:23:15 iliaa Exp $ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
http://cvs.php.net/viewcvs.cgi/php-src/ext/wddx/tests/bug37569.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/wddx/tests/bug37569.phpt
diff -u /dev/null php-src/ext/wddx/tests/bug37569.phpt:1.2
--- /dev/null   Thu May 25 23:23:15 2006
+++ php-src/ext/wddx/tests/bug37569.phpt        Thu May 25 23:23:15 2006
@@ -0,0 +1,10 @@
+--TEST--
+Bug #37569 (WDDX incorrectly encodes high-ascii characters)
+--FILE--
+<?php
+echo wddx_serialize_value(chr(1))."\n";
+echo wddx_serialize_value(chr(128))."\n";
+?>
+--EXPECT--
+<wddxPacket version='1.0'><header/><data><string><char 
code='01'/></string></data></wddxPacket>
+<wddxPacket version='1.0'><header/><data><string><char 
code='80'/></string></data></wddxPacket>

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

Reply via email to