Skip to content

Commit d335402

Browse files
arshidkv12Girgias
andauthored
Update ext/mysqli/mysqli_api.c
Co-authored-by: Gina Peter Banyard <girgias@php.net>
1 parent d1df211 commit d335402

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/mysqli/mysqli_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,9 +1197,9 @@ PHP_FUNCTION(mysqli_options)
11971197
}
11981198
MYSQLI_FETCH_RESOURCE_CONN(mysql, mysql_link, MYSQLI_STATUS_INITIALIZED);
11991199

1200-
expected_type = mysqli_options_get_option_zval_type(mysql_option);
1200+
expected_type = mysqli_options_get_option_zval_type(mysql_option);
12011201
if (expected_type == IS_NULL) {
1202-
zend_argument_value_error(ERROR_ARG_POS(2), "must be one of predefined options");
1202+
zend_argument_value_error(ERROR_ARG_POS(2), "must be MYSQLI_INIT_COMMAND, MYSQLI_SET_CHARSET_NAME, MYSQLI_SERVER_PUBLIC_KEY, or one of the MYSQLI_OPT_* constants");
12031203
RETURN_THROWS();
12041204
}
12051205

0 commit comments

Comments
 (0)