diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-05-25 23:21:01 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-05-25 23:21:01 +0000 |
commit | 0063ffc124d65b20705a3da3f09f85bf773355e5 (patch) | |
tree | aae5bc60d6490356e1f22ddaa07676bf2e9234eb | |
parent | f6753e96e352aa44464a9c93d033c76ffd5bd7c3 (diff) | |
download | php-git-0063ffc124d65b20705a3da3f09f85bf773355e5.tar.gz |
MFH: Fixed bug #37569 (WDDX incorrectly encodes high-ascii characters).
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | ext/wddx/tests/bug37569.phpt | 10 | ||||
-rw-r--r-- | ext/wddx/wddx.c | 4 |
3 files changed, 15 insertions, 0 deletions
@@ -2,6 +2,7 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2006, Version 4.4.3 - Fixed handling of extremely long paths inside tempnam() function. (Ilia) +- Fixed bug #37569 (WDDX incorrectly encodes high-ascii characters). (Ilia) 21 May 2006, Version 4.4.3RC1 - Added control character checks for cURL extension's open_basedir/safe_mode diff --git a/ext/wddx/tests/bug37569.phpt b/ext/wddx/tests/bug37569.phpt new file mode 100755 index 0000000000..f741d7b029 --- /dev/null +++ b/ext/wddx/tests/bug37569.phpt @@ -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> diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index a375997556..ef3cea3f42 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -22,6 +22,10 @@ #include "config.h" #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "php.h" #include "php_wddx.h" |