php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #12093 persistent db conns
Submitted: 2001-07-12 06:20 UTC Modified: 2002-01-09 21:20 UTC
From: php at rawhide dot cjb dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: n/a
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at rawhide dot cjb dot net
New email:
PHP Version: OS:

 

 [2001-07-12 06:20 UTC] php at rawhide dot cjb dot net
The documentation does not reflect the fact that running PHP through a CGI interface will force persistent db connections to close on script end.

Example, mssql_pconnect

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-12 06:41 UTC] derick@php.net
From Chapter 22: Persistent connections: (4th alinea on http://www.php.net/manual/en/features.persistent-connections.php):

 The first method is to use PHP as a CGI "wrapper". When run this way, an instance of the PHP interpreter is created and destroyed for every page request (for a PHP page) to your web server. Because it is destroyed after every request, any resources that it acquires (such as a link to an SQL database server) are closed when it is destroyed. In this case, you do not gain anything from trying to use persistent connections -- they simply don't persist.
 [2001-07-12 19:41 UTC] php at rawhide dot cjb dot net
IMHO a reference to this should be made from the relevant functions.
 [2001-10-30 22:53 UTC] sniper@php.net
missing status

 [2002-01-09 21:20 UTC] irc-html@php.net
All pconnect functions have links to the 'Persistent Database Connections' chapter.  Most (if not all) also state that persistent connections only work with module version of PHP.

Status -> Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 20:01:27 2024 UTC