php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45888 Refcounting in ZTS mode
Submitted: 2008-08-22 05:15 UTC Modified: 2008-08-28 06:37 UTC
From: sixd@php.net Assigned: sixd (profile)
Status: Closed Package: OCI8 related
PHP Version: 5.3.0alpha1 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 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: sixd@php.net
New email:
PHP Version: OS:

 

 [2008-08-22 05:15 UTC] sixd@php.net
Description:
------------
Tony debugged this after a user report of a problem:

"There seem to be an issue in OCI8 (in ZTS mode only).  We close all
the connections forcibly in certain order, but it seems this procedure
is wrong.  In case if a connection is opened twice (using
oci_connect() with the same details), it has refcount == 2 and one
refcount-- is not enough to delete it, so this session stays open in
the process list."

Tony has a patch.  It is currently being reviewed.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-22 09:44 UTC] tony2001@php.net
Don't forget to apply the patch =)
 [2008-08-28 06:37 UTC] sixd@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

---------------------
I wasn't able to reproduce this on Linux.  I wonder if it is related to another known problem with LOB refcounting in ZTS mode?

I merged Tony's/Sree's change that adds a loop during RSHUTDOWN and fixes the connection count globals.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC