Bug #22986 [Ana->Csd]: Unhappily 'conection cache' handling
| From: | cmb@php.net | Date: | Tue, 29 Sep 2020 09:20:48 +0000 |
| Subject: | Bug #22986 [Ana->Csd]: Unhappily 'conection cache' handling | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229259@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=22986&edit=1
ID: 22986
Updated by: cmb@php.net
Reported by: ray at unreal64 dot net
Summary: Unhappily 'conection cache' handling
-Status: Analyzed
+Status: Closed
Type: Bug
Package: ODBC related
Operating System: Windows NT4.0
PHP Version: 4.x
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9f5a77188c71bada8175dc48dd20847760bb7b10
Log: Fix #22986: odbc_connect() may reuse persistent connection
Previous Comments:
------------------------------------------------------------------------
[2020-09-27 21:20:29] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #22986: odbc_connect() may reuse persistent connection
On GitHub: https://github.com/php/php-src/pull/6223
Patch: https://github.com/php/php-src/pull/6223.patch
------------------------------------------------------------------------
[2020-09-27 19:21:58] cmb@php.net
> [â¦], if the system supports ODBC connection pooling; a
> respective note for PDO ODBC[1] also applies to ext/odbc.
No, ext/odbc does not support ODBC connection pooling at all.
------------------------------------------------------------------------
[2020-09-27 19:16:05] cmb@php.net
Related To: Bug #33797
------------------------------------------------------------------------
[2020-06-24 11:11:50] cmb@php.net
I agree that trying to re-use a persistent connection even though
odbc_connect() is called is more like a bug. However, changing
that in a stable PHP version may cause a BC break (some setups may
rely on the behavior).
Furthermore, persistent ODBC connections may not be the best idea
at all, if the system supports ODBC connection pooling; a
respective note for PDO ODBC[1] also applies to ext/odbc.
[1] <https://www.php.net/manual/en/pdo.connections.php>
------------------------------------------------------------------------
[2017-10-24 02:21:12] kalle@php.net
I would argue that this is more a bug, gonna re-classify it as such as by looking at the code of
ext/odbc it still seems to be present today
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=22986
--
Edit this bug report at https://bugs.php.net/bug.php?id=22986&edit=1