php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12089 mssql_pconnect not persistant
Submitted: 2001-07-12 04:59 UTC Modified: 2001-07-12 10:35 UTC
From: php at rawhide dot cjb dot net Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.6 OS: Win2k Pro SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
31 - 24 = ?
Subscribe to this entry?

 
 [2001-07-12 04:59 UTC] php at rawhide dot cjb dot net
I use mssql_pconnect in my script once and if I check the sql7 profiler it does this:

Connect | PHP 4.0
ExistingConnection | PHP 4.0
... queries from script
Disconnect | PHP 4.0

Isn't it supposed to keep the connection for other scripts to use? I'm not explicitly closing it. I'm allowing unlim pconns in my ini too.

Win2k Pro SP2 - IIS5 - CGI Interface (ISAPI Interface seems broken for me hence using CGI)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-12 05:30 UTC] php at rawhide dot cjb dot net
As a side note, this existed in 4.0.5 aswell. It is not 4.0.6 specific.
 [2001-07-12 06:17 UTC] php at rawhide dot cjb dot net
In the PHP FAQ it states persistent conns do not function as persistent under CGI conditions. The manual does not reflect this. I'll submit a documentation related bug on this.
 [2001-07-12 10:36 UTC] fmk@php.net
Persistant connections can only be used with a server module (ISAPI or APACHE).

When the CGI process terminates all connections are closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC