summaryrefslogtreecommitdiff
path: root/ext/standard/password.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-05-29 15:30:06 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-05-29 15:30:06 +0200
commita1a8d144854acb1c891cf0c21abb0f612b1d8de7 (patch)
tree951e99151076d87cd6060632ef608cdc4c2dc1bd /ext/standard/password.c
parente94a71b7f1539117e7ee20945127937c4ae6ce9a (diff)
downloadphp-git-a1a8d144854acb1c891cf0c21abb0f612b1d8de7.tar.gz
Update more func info information for ext/standard
Diffstat (limited to 'ext/standard/password.c')
-rw-r--r--ext/standard/password.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/password.c b/ext/standard/password.c
index 4a4d99dc6e..093df4fc06 100644
--- a/ext/standard/password.c
+++ b/ext/standard/password.c
@@ -545,7 +545,7 @@ const php_password_algo* php_password_algo_identify_ex(const zend_string* hash,
return (!algo || (algo->valid && !algo->valid(hash))) ? default_algo : algo;
}
-/* {{{ proto array password_get_info(string $hash)
+/* {{{ proto array|null password_get_info(string $hash)
Retrieves information about a given hash */
PHP_FUNCTION(password_get_info)
{
@@ -628,14 +628,14 @@ PHP_FUNCTION(password_verify)
ZEND_PARSE_PARAMETERS_START(2, 2)
Z_PARAM_STR(password)
Z_PARAM_STR(hash)
- ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
+ ZEND_PARSE_PARAMETERS_END();
algo = php_password_algo_identify(hash);
RETURN_BOOL(algo && (!algo->verify || algo->verify(password, hash)));
}
/* }}} */
-/* {{{ proto string password_hash(string password, mixed algo[, array options = array()])
+/* {{{ proto string|null password_hash(string password, mixed algo[, array options = array()])
Hash a password */
PHP_FUNCTION(password_hash)
{