From: Yasuo Ohgaki Date: Thu, 29 Mar 2012 10:48:58 +0000 (+0900) Subject: Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less) X-Git-Tag: php-5.4.4RC1~173^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=931831bf75d645bdb9f079793b0224bb4843a7a3;p=php Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less) --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index ebc17a39e5..4a9294464a 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -4807,7 +4807,9 @@ PHP_FUNCTION(pg_get_notify) #else if (atof(PG_VERSION) >= 9.0) { #endif +#if HAVE_PQPARAMETERSTATUS add_index_string(return_value, 2, pgsql_notify->extra, 1); +#endif } } if (result_type & PGSQL_ASSOC) { @@ -4818,7 +4820,9 @@ PHP_FUNCTION(pg_get_notify) #else if (atof(PG_VERSION) >= 9.0) { #endif +#if HAVE_PQPARAMETERSTATUS add_assoc_string(return_value, "payload", pgsql_notify->extra, 1); +#endif } } PQfreemem(pgsql_notify);