diff options
author | Xinchen Hui <laruence@gmail.com> | 2015-02-03 23:50:58 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2015-02-03 23:50:58 +0800 |
commit | 6c7d3ce09ab3354315f0e88071e63d6acf28dc23 (patch) | |
tree | dd1b0b78a9bf5bcc468b3c17d3fa3a383cccc2c1 /ext/pgsql/pgsql.c | |
parent | 38829b3b4beee0e6bed9b4c6443e86bceaa2d37d (diff) | |
download | php-git-6c7d3ce09ab3354315f0e88071e63d6acf28dc23.tar.gz |
Fixed pgsql tests
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 7ea2f66981..ea1a314395 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) { |