diff options
Diffstat (limited to 'ext/pgsql/pgsql.c')
-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 { |