Bug #77830 [NEW]: pg_pconnect() return new link

From: Date: Mon, 01 Apr 2019 06:49:43 +0000
Subject: Bug #77830 [NEW]: pg_pconnect() return new link
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220273@lists.php.net to get a copy of this message
From: yohgaki Operating system: PHP version: master-Git-2019-04-01 (Git) Package: PostgreSQL related Bug Type: Bug Bug description:pg_pconnect() return new link 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 -- Edit bug report at https://bugs.php.net/bug.php?id=77830&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77830&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77830&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77830&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77830&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77830&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77830&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77830&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77830&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77830&r=support Expected behavior: https://bugs.php.net/fix.php?id=77830&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77830&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77830&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77830&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77830&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77830&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77830&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77830&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77830&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77830&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77830&r=mysqlcfg

« previous php.bugs (#220273) next »