File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ PHP_FUNCTION(mysqli_autocommit)
169
169
MYSQLI_FETCH_RESOURCE_CONN (mysql , mysql_link , MYSQLI_STATUS_VALID );
170
170
171
171
if (mysql_autocommit (mysql -> mysql , (my_bool )automode )) {
172
+ MYSQLI_REPORT_MYSQL_ERROR (mysql -> mysql );
172
173
RETURN_FALSE ;
173
174
}
174
175
RETURN_TRUE ;
@@ -714,6 +715,7 @@ PHP_FUNCTION(mysqli_commit)
714
715
#else
715
716
if (FAIL == mysqlnd_commit (mysql -> mysql , flags , name )) {
716
717
#endif
718
+ MYSQLI_REPORT_MYSQL_ERROR (mysql -> mysql );
717
719
RETURN_FALSE ;
718
720
}
719
721
RETURN_TRUE ;
@@ -1929,6 +1931,7 @@ PHP_FUNCTION(mysqli_rollback)
1929
1931
#else
1930
1932
if (FAIL == mysqlnd_rollback (mysql -> mysql , flags , name )) {
1931
1933
#endif
1934
+ MYSQLI_REPORT_MYSQL_ERROR (mysql -> mysql );
1932
1935
RETURN_FALSE ;
1933
1936
}
1934
1937
RETURN_TRUE ;
@@ -2306,6 +2309,7 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2306
2309
#else
2307
2310
if (FAIL == mysql_stmt_attr_set (stmt -> stmt , attr , mode_p )) {
2308
2311
#endif
2312
+ MYSQLI_REPORT_STMT_ERROR (stmt -> stmt );
2309
2313
RETURN_FALSE ;
2310
2314
}
2311
2315
RETURN_TRUE ;
You can’t perform that action at this time.
0 commit comments