1
0
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:
Arshid
2026-02-06 14:37:54 +05:30
committed by GitHub
parent daa3513c32
commit f0d321e947

View File

@@ -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));
}
/* }}} */