Skip to content

Commit 2e5bc1e

Browse files
committed
Use greater than 0 in error messages
1 parent d9779ba commit 2e5bc1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/odbc/php_odbc.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ void odbc_column_lengths(INTERNAL_FUNCTION_PARAMETERS, int type)
788788
}
789789

790790
if (pv_num < 1) {
791-
zend_argument_value_error(2, "must be greater than or equal to 1");
791+
zend_argument_value_error(2, "must be greater than 0");
792792
RETURN_THROWS();
793793
}
794794

@@ -2486,7 +2486,7 @@ PHP_FUNCTION(odbc_field_name)
24862486
}
24872487

24882488
if (pv_num < 1) {
2489-
zend_argument_value_error(2, "must be greater than or equal to 1");
2489+
zend_argument_value_error(2, "must be greater than 0");
24902490
RETURN_THROWS();
24912491
}
24922492

@@ -2522,7 +2522,7 @@ PHP_FUNCTION(odbc_field_type)
25222522
}
25232523

25242524
if (pv_num < 1) {
2525-
zend_argument_value_error(2, "must be greater than or equal to 1");
2525+
zend_argument_value_error(2, "must be greater than 0");
25262526
RETURN_THROWS();
25272527
}
25282528

0 commit comments

Comments
 (0)