com php-src: relax the check: ext/mysqli/mysqli_nonapi.c
| From: | Andrey Hristov | Date: | Fri, 22 Feb 2013 12:50:04 +0000 |
| Subject: | com php-src: relax the check: ext/mysqli/mysqli_nonapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71288@lists.php.net to get a copy of this message | ||
Commit: 64a2a8a7536de781aac015e7392cb56308d8aed0
Author: Andrey Hristov <andrey@php.net> Fri, 22 Feb 2013 13:50:04 +0100
Parents: 1643d4ed568890d1b18a87304a39791ebb4790be
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=64a2a8a7536de781aac015e7392cb56308d8aed0
Log:
relax the check
Changed paths:
M ext/mysqli/mysqli_nonapi.c
Diff:
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c
index e743449..398c159 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;
}