mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
Update error messages to be more inline with PHP standards
This commit is contained in:
parent
4918acccc6
commit
df3d351cad
@ -629,12 +629,12 @@ PHP_FUNCTION(hash_pbkdf2)
|
||||
}
|
||||
|
||||
if (iterations <= 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Iterations Must Be A Positive Integer: %ld", iterations);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Iterations must be a positive integer: %ld", iterations);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (length < 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length Must Be Greater Than Or Equal To 0: %ld", length);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length must be greater than or equal to 0: %ld", length);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user