Skip to content

Commit 8193542

Browse files
Update ext/mysqli/mysqli_api.c
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
1 parent 0a98c9c commit 8193542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ PHP_FUNCTION(mysqli_options)
11991199

12001200
expected_type = mysqli_options_get_option_zval_type(mysql_option);
12011201
if (expected_type == IS_NULL) {
1202-
zend_value_error("Argument #1 ($option) is not a valid mysqli option");
1202+
zend_argument_value_error(ERROR_ARG_POS(2), "must be one of predefined options");
12031203
RETURN_THROWS();
12041204
}
12051205

0 commit comments

Comments
 (0)