php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77830 pg_pconnect() return new link
Submitted: 2019-04-01 06:49 UTC Modified: 2019-04-01 06:55 UTC
From: yohgaki@php.net Assigned: yohgaki (profile)
Status: Assigned Package: PostgreSQL related
PHP Version: master-Git-2019-04-01 (Git) OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-04-01 06:49 UTC] yohgaki@php.net
Description:
------------
As stated in summary, pg_pconnect() returns new link.



Test script:
---------------
[yohgaki@dev PHP-master]$ ./sapi/cli/php -v
PHP 8.0.0-dev (cli) (built: Apr  1 2019 15:45:39) ( NTS DEBUG )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.0-dev, Copyright (c), by Zend Technologies
[yohgaki@dev PHP-master]$ ./sapi/cli/php -a
Interactive shell

php > $db = pg_pconnect('host=localhost');
php > var_dump($db);
resource(1) of type (pgsql link persistent)
php > $db = pg_pconnect('host=localhost');
php > var_dump($db);
resource(2) of type (pgsql link persistent)
php > 

[yohgaki@dev PHP-master]$ ./sapi/cli/php -i | grep ^pgsql
pgsql
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-01 06:49 UTC] yohgaki@php.net
-Assigned To: +Assigned To: yohgaki
 [2019-04-01 06:55 UTC] yohgaki@php.net
It seems it's broken for a long time. Fix this for only PHP 7.4 and later?
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 07:01:27 2019 UTC