summaryrefslogtreecommitdiff
path: root/ext/standard/password.c
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2019-06-27 19:00:32 -0400
committerSara Golemon <pollita@php.net>2019-06-27 19:26:03 -0400
commit27f1f3ed1a040a7f20bd9bb16af7bf219f4df97f (patch)
tree0deab34b50d0d12d20530ac7ae2927e7f79e7a37 /ext/standard/password.c
parent35b6a9f75a5de21bc0d7c311fbf7b5c3f255420b (diff)
downloadphp-git-27f1f3ed1a040a7f20bd9bb16af7bf219f4df97f.tar.gz
Bugfix #78208 Needs rehash with an unknown algo should always return true.
Diffstat (limited to 'ext/standard/password.c')
-rw-r--r--ext/standard/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/password.c b/ext/standard/password.c
index d91058bfc2..d7e12e852a 100644
--- a/ext/standard/password.c
+++ b/ext/standard/password.c
@@ -672,7 +672,7 @@ PHP_FUNCTION(password_needs_rehash)
Z_PARAM_ARRAY_OR_OBJECT_HT(options)
ZEND_PARSE_PARAMETERS_END();
- new_algo = php_password_algo_find_zval_ex(znew_algo, NULL);
+ new_algo = php_password_algo_find_zval(znew_algo);
if (!new_algo) {
/* Unknown new algorithm, never prompt to rehash. */
RETURN_FALSE;