com php-src: Fixed pgsql tests: ext/pgsql/pgsql.c
| From: | Xinchen Hui | Date: | Tue, 03 Feb 2015 15:50:58 +0000 |
| Subject: | com php-src: Fixed pgsql tests: ext/pgsql/pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84609@lists.php.net to get a copy of this message | ||
Commit: 6c7d3ce09ab3354315f0e88071e63d6acf28dc23
Author: Xinchen Hui <laruence@gmail.com> Tue, 3 Feb 2015 23:50:58 +0800
Parents: 38829b3b4beee0e6bed9b4c6443e86bceaa2d37d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6c7d3ce09ab3354315f0e88071e63d6acf28dc23
Log:
Fixed pgsql tests
Changed paths:
M ext/pgsql/pgsql.c
Diff:
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 7ea2f66..ea1a314 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -4340,11 +4340,7 @@ PHP_FUNCTION(pg_escape_string)
return;
}
link = FETCH_DEFAULT_LINK();
- if (!link) {
- RETURN_FALSE;
- }
break;
-
default:
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rS", &pgsql_link, &from) ==
FAILURE) {
return;
@@ -4390,9 +4386,6 @@ PHP_FUNCTION(pg_escape_bytea)
return;
}
link = FETCH_DEFAULT_LINK();
- if (!link) {
- RETURN_FALSE;
- }
break;
default:
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &pgsql_link, &from,
&from_len) == FAILURE) {