diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index e7434491729..398c15919b4 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -1111,7 +1111,7 @@ PHP_FUNCTION(mysqli_begin_transaction) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid value for parameter flags (%ld)", flags); err = TRUE; } - if (!name || !name_len) { + if (!name_len) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Savepoint name cannot be empty"); err = TRUE; }