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 ;
@@ -709,6 +710,7 @@ PHP_FUNCTION(mysqli_commit)
709
710
#else
710
711
if (FAIL == mysqlnd_commit (mysql -> mysql , flags , name )) {
711
712
#endif
713
+ MYSQLI_REPORT_MYSQL_ERROR (mysql -> mysql );
712
714
RETURN_FALSE ;
713
715
}
714
716
RETURN_TRUE ;
@@ -1928,6 +1930,7 @@ PHP_FUNCTION(mysqli_rollback)
1928
1930
#else
1929
1931
if (FAIL == mysqlnd_rollback (mysql -> mysql , flags , name )) {
1930
1932
#endif
1933
+ MYSQLI_REPORT_MYSQL_ERROR (mysql -> mysql );
1931
1934
RETURN_FALSE ;
1932
1935
}
1933
1936
RETURN_TRUE ;
@@ -2298,6 +2301,7 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2298
2301
#else
2299
2302
if (FAIL == mysql_stmt_attr_set (stmt -> stmt , attr , mode_p )) {
2300
2303
#endif
2304
+ MYSQLI_REPORT_STMT_ERROR (stmt -> stmt );
2301
2305
RETURN_FALSE ;
2302
2306
}
2303
2307
RETURN_TRUE ;
You can’t perform that action at this time.
0 commit comments