Use "must not" instead of "cannot" wording

This commit is contained in:
Gina Peter Bnayard 2024-08-20 13:45:39 +02:00 committed by Gina Peter Banyard
parent c811d58953
commit 5853cdb73d
157 changed files with 281 additions and 281 deletions

View file

@ -4613,7 +4613,7 @@ PHP_FUNCTION(pg_meta_data)
/* php_pgsql_meta_data() asserts that table_name is not empty */
if (ZSTR_LEN(table_name) == 0) {
zend_argument_cannot_be_empty_error(2);
zend_argument_must_not_be_empty_error(2);
RETURN_THROWS();
}
@ -4799,7 +4799,7 @@ PHP_PGSQL_API zend_result php_pgsql_convert(PGconn *pg_link, const zend_string *
ZEND_ASSERT(Z_TYPE_P(result) == IS_ARRAY);
ZEND_ASSERT(!(opt & ~PGSQL_CONV_OPTS));
ZEND_ASSERT(table_name);
/* Table name cannot be empty for php_pgsql_meta_data() */
/* Table name must not be empty for php_pgsql_meta_data() */
ZEND_ASSERT(ZSTR_LEN(table_name) != 0);
array_init(&meta);
@ -5405,7 +5405,7 @@ PHP_FUNCTION(pg_convert)
ZEND_PARSE_PARAMETERS_END();
if (ZSTR_LEN(table_name) == 0) {
zend_argument_cannot_be_empty_error(2);
zend_argument_must_not_be_empty_error(2);
RETURN_THROWS();
}
@ -5618,7 +5618,7 @@ PHP_FUNCTION(pg_insert)
ZEND_PARSE_PARAMETERS_END();
if (ZSTR_LEN(table) == 0) {
zend_argument_cannot_be_empty_error(2);
zend_argument_must_not_be_empty_error(2);
RETURN_THROWS();
}
@ -5840,7 +5840,7 @@ PHP_FUNCTION(pg_update)
ZEND_PARSE_PARAMETERS_END();
if (ZSTR_LEN(table) == 0) {
zend_argument_cannot_be_empty_error(2);
zend_argument_must_not_be_empty_error(2);
RETURN_THROWS();
}
@ -5939,7 +5939,7 @@ PHP_FUNCTION(pg_delete)
ZEND_PARSE_PARAMETERS_END();
if (ZSTR_LEN(table) == 0) {
zend_argument_cannot_be_empty_error(2);
zend_argument_must_not_be_empty_error(2);
RETURN_THROWS();
}
@ -6095,7 +6095,7 @@ PHP_FUNCTION(pg_select)
ZEND_PARSE_PARAMETERS_END();
if (ZSTR_LEN(table) == 0) {
zend_argument_cannot_be_empty_error(2);
zend_argument_must_not_be_empty_error(2);
RETURN_THROWS();
}
@ -6143,13 +6143,13 @@ PHP_FUNCTION(pg_change_password)
ZEND_PARSE_PARAMETERS_END();
if (ZSTR_LEN(user) == 0) {
zend_argument_cannot_be_empty_error(2);
zend_argument_must_not_be_empty_error(2);
RETURN_THROWS();
}
/* it is technically possible, but better to disallow it */
if (ZSTR_LEN(passwd) == 0) {
zend_argument_cannot_be_empty_error(3);
zend_argument_must_not_be_empty_error(3);
RETURN_THROWS();
}