php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51865 Make use of Apache httpd 2.2's mod_dbd connection pooling
Submitted: 2010-05-20 02:12 UTC Modified: 2010-08-16 22:19 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: i dot galic at brainsware dot org Assigned: kalle (profile)
Status: Closed Package: *Database Functions
PHP Version: 5.3.2 OS: Any
Private report: No CVE-ID: None
 [2010-05-20 02:12 UTC] i dot galic at brainsware dot org
Description:
------------
Due to the fact that PHP doesn't really have pooled DB connections, or at least doesn't seem to be able to handle them: http://bugs.php.net/bug.php?id=46740 I was wondering if it would be possible to implement connection pooling using the apr_dbd API as provided by httpd, which can be configured via httpd.conf with mod_dbd.

IMO, this would get the LAMP stack a bit closer to being an Application Server.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-16 22:19 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2010-08-16 22:19 UTC] kalle@php.net
One should implement this as an extension like mysqlnd is implemented, allowing others to inherit from the abstraction code. Its quite possible such a thing might come up in PECL, but for the Core PHP its not very likely that any of us are going to work on it.

Also you have to keep in mind that it requires alot of changes to allow connection pooling while under Apache, and at the same time allowing an extension to use another, non Apache based webserver, like IIS to work with. Else the extension would get way too limited.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 27 11:01:28 2019 UTC