com php-src: Fixed bug #65336: ext/pgsql/pgsql.c
| From: | Yasuo Ohgaki | Date: | Fri, 26 Jul 2013 20:55:02 +0000 |
| Subject: | com php-src: Fixed bug #65336: ext/pgsql/pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72762@lists.php.net to get a copy of this message | ||
Commit: d4aee1021e6a29f62dcb9c96e945a0fe710c8832
Author: Yasuo Ohgaki <yohgaki@php.net> Sat, 27 Jul 2013 05:46:11 +0900
Parents: 85b66e9e2184eda9f2882684b5e8d7cfe3b348ce
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d4aee1021e6a29f62dcb9c96e945a0fe710c8832
Log:
Fixed bug #65336
Bugs:
https://bugs.php.net/65336
Changed paths:
M ext/pgsql/pgsql.c
Diff:
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 3a17b8c..de8bfc8 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -4295,12 +4295,13 @@ static void php_pgsql_escape_internal(INTERNAL_FUNCTION_PARAMETERS, int
escape_l
}
if (pgsql_link == NULL && id == -1) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING,"Cannot get default pgsql link");
RETURN_FALSE;
}
ZEND_FETCH_RESOURCE2(pgsql, PGconn *, &pgsql_link, id, "PostgreSQL link", le_link,
le_plink);
if (pgsql == NULL) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING,"Cannot get default pgsql link");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING,"Cannot get pgsql link");
RETURN_FALSE;
}
#ifdef HAVE_PQESCAPELITERAL