From: Andrei Zmievski Date: Tue, 16 Aug 2005 19:45:00 +0000 (+0000) Subject: md5() and md5_file() should return binary strings when raw_output is X-Git-Tag: PRE_NEW_OCI8_EXTENSION~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06c3c85e199aba98bb276447dab2e8a118e8889e;p=php md5() and md5_file() should return binary strings when raw_output is set. --- diff --git a/ext/standard/md5.c b/ext/standard/md5.c index d8eb900eb5..2a33588774 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_STRINGL(digest, 16, 1); + RETURN_BINARYL(digest, 16, 1); } else { make_digest(md5str, digest); if (UG(unicode)) { @@ -110,7 +110,7 @@ PHP_NAMED_FUNCTION(php_if_md5_file) } if (raw_output) { - RETURN_STRINGL(digest, 16, 1); + RETURN_BINARYL(digest, 16, 1); } else { make_digest(md5str, digest); if (UG(unicode)) {