diff options
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
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 */ |