]> granicus.if.org Git - php/commitdiff
Fixed pgsql tests
authorXinchen Hui <laruence@gmail.com>
Tue, 3 Feb 2015 15:50:58 +0000 (23:50 +0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 3 Feb 2015 15:50:58 +0000 (23:50 +0800)
ext/pgsql/pgsql.c

index 7ea2f6698141971e5a508ab4a959c334520abdbf..ea1a314395d4dc72656c793f610efbcfbbb66434 100644 (file)
@@ -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) {