mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
[mysqli] Simply if -> RETURN_TRUE/FALSE with RETURN_BOOL() (GH-21149)
This commit is contained in:
@@ -1410,10 +1410,7 @@ PHP_FUNCTION(mysqli_stmt_send_long_data)
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
if (mysql_stmt_send_long_data(stmt->stmt, param_nr, data, data_len)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
RETURN_TRUE;
|
||||
RETURN_BOOL(!mysql_stmt_send_long_data(stmt->stmt, param_nr, data, data_len));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@@ -1552,10 +1549,7 @@ PHP_FUNCTION(mysqli_stmt_reset)
|
||||
|
||||
MYSQLI_FETCH_RESOURCE_STMT(stmt, mysql_stmt, MYSQLI_STATUS_VALID);
|
||||
|
||||
if (mysql_stmt_reset(stmt->stmt)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
RETURN_TRUE;
|
||||
RETURN_BOOL(!mysql_stmt_reset(stmt->stmt));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user