diff options
author | foobar <sniper@php.net> | 2001-06-04 08:06:30 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-06-04 08:06:30 +0000 |
commit | 28da411d2318299ea8a4472b12a288c1fb0781bf (patch) | |
tree | 89bbd4fd6c9608fa22eeaee8101bb1383f77b495 | |
parent | 1577206f4ec82448f52b32206ca02a96a4aa8b01 (diff) | |
download | php-git-28da411d2318299ea8a4472b12a288c1fb0781bf.tar.gz |
MFH
-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 b0e563d6f0..180e06be6c 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 { |