diff options
author | foobar <sniper@php.net> | 2001-06-04 08:06:07 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-06-04 08:06:07 +0000 |
commit | d1a382a1e82753cd05bf3430cd7113ccfb1052cc (patch) | |
tree | 2e3e51023c008c3bfdd5140d2d08727258ea6e82 | |
parent | fadd1472ea0574fa85ebf88dc23ab32f0b9215d1 (diff) | |
download | php-git-d1a382a1e82753cd05bf3430cd7113ccfb1052cc.tar.gz |
Fixed bug: #11265
-rw-r--r-- | ext/pgsql/pgsql.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |