summaryrefslogtreecommitdiff
path: root/ext/hash
diff options
context:
space:
mode:
authorLior Kaplan <kaplanlior@gmail.com>2014-07-22 06:22:55 +0300
committerLior Kaplan <kaplanlior@gmail.com>2014-07-22 19:38:35 +0300
commit1953438ca024dfce48a3dbae51cf642909fb9211 (patch)
tree0fe45e2ba7527d6d14635460a80c89a3d1cead7a /ext/hash
parentda81873a462726f7aa67b7522e6e5a06f690d359 (diff)
downloadphp-git-1953438ca024dfce48a3dbae51cf642909fb9211.tar.gz
RETVAL_STRING takes only one variable
Follow up for commit f4cfaf36
Diffstat (limited to 'ext/hash')
-rw-r--r--ext/hash/hash_md.c4
-rw-r--r--ext/hash/hash_sha.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/hash/hash_md.c b/ext/hash/hash_md.c
index 41b2d1a087..ebd357d2f7 100644
--- a/ext/hash/hash_md.c
+++ b/ext/hash/hash_md.c
@@ -124,7 +124,7 @@ PHP_NAMED_FUNCTION(php_if_md5)
RETURN_STRINGL(digest, 16);
} else {
make_digest(md5str, digest);
- RETVAL_STRING(md5str, 1);
+ RETVAL_STRING(md5str);
}
}
@@ -171,7 +171,7 @@ PHP_NAMED_FUNCTION(php_if_md5_file)
RETURN_STRINGL(digest, 16);
} else {
make_digest(md5str, digest);
- RETVAL_STRING(md5str, 1);
+ RETVAL_STRING(md5str);
}
}
/* }}} */
diff --git a/ext/hash/hash_sha.c b/ext/hash/hash_sha.c
index 5dfde8bf4b..f39567e6dd 100644
--- a/ext/hash/hash_sha.c
+++ b/ext/hash/hash_sha.c
@@ -107,7 +107,7 @@ PHP_FUNCTION(sha1)
RETURN_STRINGL(digest, 20);
} else {
make_sha1_digest(sha1str, digest);
- RETVAL_STRING(sha1str, 1);
+ RETVAL_STRING(sha1str);
}
}
@@ -155,7 +155,7 @@ PHP_FUNCTION(sha1_file)
RETURN_STRINGL(digest, 20);
} else {
make_sha1_digest(sha1str, digest);
- RETVAL_STRING(sha1str, 1);
+ RETVAL_STRING(sha1str);
}
}
/* }}} */