php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1701 PHP not closing invalid persistent connections
Submitted: 1999-07-13 10:23 UTC Modified: 2001-02-10 15:21 UTC
From: q at onthenet dot com dot au Assigned:
Status: Closed Package: mSQL related
PHP Version: 3.0.11 OS: FreeBSD 3.2-RELEASE
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: q at onthenet dot com dot au
New email:
PHP Version: OS:

 

 [1999-07-13 10:23 UTC] q at onthenet dot com dot au
When using PHP as a module in apache, and connecting to mSQL using local domain sockets. If a connection is made using msql_pconnect() and the mSQL database goes away, when it returns all subsiquent mSQL operations will fail when using this persistent connection. The only way to fix this situation is to restart apache. The problem is that upon calling msql_pconnect() after mSQL has been restarted the existing (now invalid) handle is returned. Either support should be added to detect the termination of the connection (if this is possible) or an msql_pclose() function should be added so that a persistent connection can be explicitely closed when it becomes invalid.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-04 22:34 UTC] hholzgra@php.net
do current versions of php still show this bug?
 [2001-02-10 15:21 UTC] jimw@php.net
no feedback, closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC