Skip to content

Commit 2db6e98

Browse files
committed
mysqli: raise ValueError for invalid option in mysqli_options() respecting report_mode
1 parent 9ba4bf2 commit 2db6e98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,7 @@ PHP_FUNCTION(mysqli_options)
12121212
if (MyG(report_mode) & MYSQLI_REPORT_ERROR) {
12131213
zend_value_error("mysqli_options(): Invalid option %d", (int)mysql_option);
12141214
}
1215+
ret = 1;
12151216
break;
12161217
}
12171218
}

0 commit comments

Comments
 (0)