From c03328857394bef36ffa9678d33079ad96e4a4e4 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Tue, 25 Sep 2001 21:58:48 +0000 Subject: Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know. --- ext/standard/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/md5.c') diff --git a/ext/standard/md5.c b/ext/standard/md5.c index 00444db734..634814a74f 100644 --- a/ext/standard/md5.c +++ b/ext/standard/md5.c @@ -45,7 +45,7 @@ PHP_NAMED_FUNCTION(php_if_md5) md5str[0] = '\0'; PHP_MD5Init(&context); - PHP_MD5Update(&context, (*arg)->value.str.val, (*arg)->value.str.len); + PHP_MD5Update(&context, Z_STRVAL_PP(arg), Z_STRLEN_PP(arg)); PHP_MD5Final(digest, &context); for (i = 0, r = md5str; i < 16; i++, r += 2) { sprintf(r, "%02x", digest[i]); -- cgit v1.2.1