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