- Fixed a bug in mysqli_stmt_execute() (type conversion with NULL values). (Georg)
- Fixed segfault in mysqli_fetch_field_direct() when invalid field offset
is passed. (Tony)
+- Fixed bug #31710 (Wrong return values for mysqli_autocommit/commit/rollback).
+ (Georg)
- Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings).
(elod at itfais dot com)
- Fixed bug #31699 (unserialize() float problem on non-English locales). (Ilia)
{
MY_MYSQL *mysql;
zval *mysql_link;
- unsigned long rc;
unsigned long automode;
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ob", &mysql_link, mysqli_link_class_entry, &automode) == FAILURE) {
}
MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link");
- rc = (long) mysql_autocommit(mysql->mysql, automode);
-
- RETURN_BOOL(rc);
+ if (mysql_autocommit(mysql->mysql, automode)) {
+ RETURN_FALSE;
+ }
+ RETURN_TRUE;
}
/* }}} */
{
MY_MYSQL *mysql;
zval *mysql_link;
- ulong rc;
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
return;
}
MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link");
- rc = mysql_commit(mysql->mysql);
- RETURN_BOOL(rc);
+ if (mysql_commit(mysql->mysql)) {
+ RETURN_FALSE;
+ }
+ RETURN_TRUE;
}
/* }}} */
}
MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link");
- RETURN_BOOL(mysql_rollback(mysql->mysql));
+ if (mysql_rollback(mysql->mysql)) {
+ RETURN_FALSE;
+ }
+ RETURN_TRUE;
}
/* }}} */