Skip to content

Commit 26cdc04

Browse files
committed
Restore original error condition
1 parent 16d965c commit 26cdc04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
22582258
switch (attr) {
22592259
#if MYSQL_VERSION_ID >= 50107
22602260
case STMT_ATTR_UPDATE_MAX_LENGTH:
2261-
if (mode_in != 0 && mode_in != 1) {
2261+
if (mode_in < 0) {
22622262
zend_argument_value_error(ERROR_ARG_POS(3), "must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH");
22632263
RETURN_THROWS();
22642264
}

0 commit comments

Comments
 (0)