summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@ohgaki.net>2012-03-29 19:48:58 +0900
committerYasuo Ohgaki <yohgaki@ohgaki.net>2012-03-29 20:04:15 +0900
commit8449e0ca89d77fb20ac3326a0cf574ae2d13676c (patch)
treeb7fc6a7f3b943b519e7dad2f5e92470f123135c7
parentfb124764de04ccd1249dd192d874ee04aada7dc0 (diff)
downloadphp-git-8449e0ca89d77fb20ac3326a0cf574ae2d13676c.tar.gz
Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less)
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 4 insertions, 0 deletions
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);