From 64a2a8a7536de781aac015e7392cb56308d8aed0 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Fri, 22 Feb 2013 13:50:04 +0100 Subject: [PATCH] relax the check --- ext/mysqli/mysqli_nonapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index e743449172..398c15919b 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; } -- 2.40.0