summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-07-13 17:13:00 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-07-13 17:13:00 +0000
commitb9325a36a8df9619e4485b166516cff1e9193406 (patch)
tree91537c1bd984ee64bf878003fd927e014c1c8bc9 /ext/pgsql/pgsql.c
parentd0d86ac12761fd1cce0a3cb0e079c1e40244f335 (diff)
downloadphp-git-b9325a36a8df9619e4485b166516cff1e9193406.tar.gz
Fix for #11941
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index fd959d560d..f4bf477b66 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -409,7 +409,7 @@ void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
break;
}
- if (persistent) {
+ if (persistent && PGG(allow_persistent)) {
list_entry *le;
/* try to find if we already have this link in our persistent list */