Skip to content

Commit 0a98c9c

Browse files
committed
mysqli: raise ValueError for invalid option in mysqli_options() respecting report_mode
1 parent 1647ae8 commit 0a98c9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@ PHP_FUNCTION(mysqli_options)
12021202
zend_value_error("Argument #1 ($option) is not a valid mysqli option");
12031203
RETURN_THROWS();
12041204
}
1205+
12051206
if (expected_type != Z_TYPE_P(mysql_value)) {
12061207
switch (expected_type) {
12071208
case IS_STRING:

0 commit comments

Comments
 (0)