com php-src: Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less): ext/pgsql/pgsql.c

From: Date: Thu, 29 Mar 2012 10:48:58 +0000
Subject: com php-src: Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less): ext/pgsql/pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-68606@lists.php.net to get a copy of this message
Commit: 8449e0ca89d77fb20ac3326a0cf574ae2d13676c Author: Yasuo Ohgaki <yohgaki@ohgaki.net> Thu, 29 Mar 2012 19:48:58 +0900 Parents: fb124764de04ccd1249dd192d874ee04aada7dc0 Branches: PHP-5.3 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8449e0ca89d77fb20ac3326a0cf574ae2d13676c Log: Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less) Bugs: https://bugs.php.net/60718 Changed paths: M ext/pgsql/pgsql.c Diff: 8449e0ca89d77fb20ac3326a0cf574ae2d13676c diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql..c index ebc17a3..4a92944 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);

« previous php.cvs (#68606) next »