summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_nonapi.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2013-02-22 13:50:04 +0100
committerAndrey Hristov <andrey@php.net>2013-02-22 13:50:04 +0100
commit64a2a8a7536de781aac015e7392cb56308d8aed0 (patch)
tree22bc6cd5a9a2849ced5bf6f3e05bc0805f91e6f4 /ext/mysqli/mysqli_nonapi.c
parent1643d4ed568890d1b18a87304a39791ebb4790be (diff)
downloadphp-git-64a2a8a7536de781aac015e7392cb56308d8aed0.tar.gz
relax the check
Diffstat (limited to 'ext/mysqli/mysqli_nonapi.c')
-rw-r--r--ext/mysqli/mysqli_nonapi.c2
1 files changed, 1 insertions, 1 deletions
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;
}