summaryrefslogtreecommitdiff
path: root/ext/standard/password.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-02-24 20:19:20 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-03-18 19:56:10 +0100
commitbb6f374048bc0b4203e4fec7fd4e887519f663d6 (patch)
tree099235fa1a79d0505c122472732fed18e3504d47 /ext/standard/password.c
parentc2f1c36e30b6de8ee1e5f5fb90406c2b950b5382 (diff)
downloadphp-git-bb6f374048bc0b4203e4fec7fd4e887519f663d6.tar.gz
Improve argument error messages in ext/standard
Closes GH-5198
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 cac1637fde..0efa624bf3 100644
--- a/ext/standard/password.c
+++ b/ext/standard/password.c
@@ -669,7 +669,7 @@ PHP_FUNCTION(password_hash)
algo = php_password_algo_find_zval(zalgo);
if (!algo) {
zend_string *algostr = zval_get_string(zalgo);
- zend_value_error("Unknown password hashing algorithm: %s", ZSTR_VAL(algostr));
+ zend_argument_value_error(2, "must be a valid password hashing algorithm");
zend_string_release(algostr);
RETURN_THROWS();
}