Skip to content

Commit aecf548

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less)
2 parents 1d8664b + 931831b commit aecf548

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
@@ -4787,7 +4787,9 @@ PHP_FUNCTION(pg_get_notify)
47874787
#else
47884788
if (atof(PG_VERSION) >= 9.0) {
47894789
#endif
4790+
#if HAVE_PQPARAMETERSTATUS
47904791
add_index_string(return_value, 2, pgsql_notify->extra, 1);
4792+
#endif
47914793
}
47924794
}
47934795
if (result_type & PGSQL_ASSOC) {
@@ -4798,7 +4800,9 @@ PHP_FUNCTION(pg_get_notify)
47984800
#else
47994801
if (atof(PG_VERSION) >= 9.0) {
48004802
#endif
4803+
#if HAVE_PQPARAMETERSTATUS
48014804
add_assoc_string(return_value, "payload", pgsql_notify->extra, 1);
4805+
#endif
48024806
}
48034807
}
48044808
PQfreemem(pgsql_notify);

0 commit comments

Comments
 (0)