mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use "must not" instead of "cannot" wording
This commit is contained in:
committed by
Gina Peter Banyard
parent
c811d58953
commit
5853cdb73d
@@ -635,7 +635,7 @@ PHP_FUNCTION(hash_init)
|
||||
}
|
||||
if (!key || (ZSTR_LEN(key) == 0)) {
|
||||
/* Note: a zero length key is no key at all */
|
||||
zend_argument_value_error(3, "cannot be empty when HMAC is requested");
|
||||
zend_argument_value_error(3, "must not be empty when HMAC is requested");
|
||||
RETURN_THROWS();
|
||||
}
|
||||
}
|
||||
@@ -914,7 +914,7 @@ PHP_FUNCTION(hash_hkdf)
|
||||
}
|
||||
|
||||
if (ZSTR_LEN(ikm) == 0) {
|
||||
zend_argument_cannot_be_empty_error(2);
|
||||
zend_argument_must_not_be_empty_error(2);
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,6 @@ trycatch_dump(
|
||||
[ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
|
||||
|
||||
-- Testing hash_hkdf() function with invalid parameters --
|
||||
[ValueError] hash_hkdf(): Argument #2 ($key) cannot be empty
|
||||
[ValueError] hash_hkdf(): Argument #2 ($key) must not be empty
|
||||
[ValueError] hash_hkdf(): Argument #3 ($length) must be greater than or equal to 0
|
||||
[ValueError] hash_hkdf(): Argument #3 ($length) must be less than or equal to 5100
|
||||
|
||||
@@ -47,7 +47,7 @@ hash_init(): Argument #1 ($algo) must be a valid hashing algorithm
|
||||
hash_init(): Argument #1 ($algo) must be a cryptographic hashing algorithm if HMAC is requested
|
||||
|
||||
-- Testing hash_init() function with HASH_HMAC and no key --
|
||||
hash_init(): Argument #3 ($key) cannot be empty when HMAC is requested
|
||||
hash_init(): Argument #3 ($key) must not be empty when HMAC is requested
|
||||
|
||||
Deprecated: hash_init(): Passing null to parameter #3 ($key) of type string is deprecated in %s on line %d
|
||||
hash_init(): Argument #3 ($key) cannot be empty when HMAC is requested
|
||||
hash_init(): Argument #3 ($key) must not be empty when HMAC is requested
|
||||
|
||||
Reference in New Issue
Block a user