php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40040 release persistant mysql connection back to pool
Submitted: 2007-01-06 04:00 UTC Modified: 2007-01-07 02:52 UTC
From: php at rebel dot com dot au Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.4.4 OS: all
Private report: No CVE-ID: None
 [2007-01-06 04:00 UTC] php at rebel dot com dot au
Description:
------------
It would be nice if a function could be added to the sql functions allowing a persistant connection to be returned to the connection pool, for reuse by other scripts. 

This would be most useful in a very busy server where milliseconds count.

eg:
<?
$connection = mysql_pconnect(...);

do mysql stuff

mysql_prelease($connection);

do other perhaps time consuming stuff

?>


Reproduce code:
---------------
not reproduceable - feature request


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-06 16:05 UTC] johannes@php.net
There is no global resource pool, the persistent resources can only be reused by the same child.
 [2007-01-07 02:52 UTC] php at rebel dot com dot au
ok thanks for the clarification. 
Perhaps the feature request should be to create a common pool of connections and then implement this suggestion.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 02:00:03 2025 UTC