From d1a382a1e82753cd05bf3430cd7113ccfb1052cc Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 4 Jun 2001 08:06:07 +0000 Subject: Fixed bug: #11265 --- ext/pgsql/pgsql.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 3c68c0fcdd..35e5b23191 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -885,7 +885,10 @@ PHP_FUNCTION(pg_cmdtuples) /* {{{ proto int pg_last_notice(int connection) Returns the last notice set by the backend */ -PHP_FUNCTION(pg_last_notice) { +PHP_FUNCTION(pg_last_notice) +{ + PGLS_FETCH(); + if (PGG(last_notice) == NULL) { RETURN_FALSE; } else { -- cgit v1.2.1