summaryrefslogtreecommitdiff
path: root/ext/standard/md5.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-01-17 12:18:53 +0000
committerDmitry Stogov <dmitry@php.net>2006-01-17 12:18:53 +0000
commit227295a4f1df63b8740aa2bdd8cdca61be738268 (patch)
treeefb1f210d045f33372e694d6835ff8c8fa7151ff /ext/standard/md5.c
parent465b131c2f15f5816f7db02b0dd69907a1d0dd3d (diff)
downloadphp-git-227295a4f1df63b8740aa2bdd8cdca61be738268.tar.gz
Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
Diffstat (limited to 'ext/standard/md5.c')
-rw-r--r--ext/standard/md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/md5.c b/ext/standard/md5.c
index 06c5a0b699..bf3902484b 100644
--- a/ext/standard/md5.c
+++ b/ext/standard/md5.c
@@ -58,7 +58,7 @@ PHP_NAMED_FUNCTION(php_if_md5)
PHP_MD5Update(&context, arg, arg_len);
PHP_MD5Final(digest, &context);
if (raw_output) {
- RETURN_BINARYL(digest, 16, 1);
+ RETURN_STRINGL(digest, 16, 1);
} else {
make_digest(md5str, digest);
RETVAL_ASCII_STRING(md5str, 1);
@@ -105,7 +105,7 @@ PHP_NAMED_FUNCTION(php_if_md5_file)
}
if (raw_output) {
- RETURN_BINARYL(digest, 16, 1);
+ RETURN_STRINGL(digest, 16, 1);
} else {
make_digest(md5str, digest);
RETVAL_ASCII_STRING(md5str, 1);