Skip to content

Commit 8449e0c

Browse files
committed
Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less)
1 parent fb12476 commit 8449e0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/pgsql/pgsql.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4807,7 +4807,9 @@ PHP_FUNCTION(pg_get_notify)
48074807
#else
48084808
if (atof(PG_VERSION) >= 9.0) {
48094809
#endif
4810+
#if HAVE_PQPARAMETERSTATUS
48104811
add_index_string(return_value, 2, pgsql_notify->extra, 1);
4812+
#endif
48114813
}
48124814
}
48134815
if (result_type & PGSQL_ASSOC) {
@@ -4818,7 +4820,9 @@ PHP_FUNCTION(pg_get_notify)
48184820
#else
48194821
if (atof(PG_VERSION) >= 9.0) {
48204822
#endif
4823+
#if HAVE_PQPARAMETERSTATUS
48214824
add_assoc_string(return_value, "payload", pgsql_notify->extra, 1);
4825+
#endif
48224826
}
48234827
}
48244828
PQfreemem(pgsql_notify);

0 commit comments

Comments
 (0)