Bug #81113 [NEW]: PDO holds some non-GCable reference
| From: | m at m dot cz | Date: | Tue, 08 Jun 2021 08:42:14 +0000 |
| Subject: | Bug #81113 [NEW]: PDO holds some non-GCable reference | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-234250@lists.php.net to get a copy of this message | ||
From: m at m dot cz
Operating system: any
PHP version: 8.0.7
Package: PDO related
Bug Type: Bug
Bug description:PDO holds some non-GCable reference
Description:
------------
See
https://github.com/atk4/data/pull/878/commits/83345e3ce4b9006efe9bfe50befacef20f3aee08
When DBAL connection is closed manually - all references to PDO
connection are removed manually (by
https://github.com/doctrine/dbal/blob/3.1.0/src/Connection.php#L646
) -
then PDO connection is released correctly.
But when there is no reference to an object holding the PDO connection
(in this case Doctrine\DBAL\Connection), PDO connection is NOT released
when GC is run.
I belive PDO holds some reference which is not decreased during GC
cycle.
--
Edit bug report at https://bugs.php.net/bug.php?id=81113&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81113&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81113&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81113&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81113&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81113&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81113&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81113&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81113&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81113&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81113&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81113&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81113&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81113&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81113&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81113&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81113&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81113&r=mysqlcfg