#45888 [Asn->Csd]: Refcounting in ZTS mode
| From: | sixd@php.net | Date: | Thu, 28 Aug 2008 06:37:09 +0000 |
| Subject: | #45888 [Asn->Csd]: Refcounting in ZTS mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128492@lists.php.net to get a copy of this message | ||
ID: 45888
Updated by: sixd@php.net
Reported By: sixd@php.net
-Status: Assigned
+Status: Closed
Bug Type: OCI8 related
Operating System: n/a
PHP Version: 5.3.0alpha1
Assigned To: sixd
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-08-22 09:44:28] tony2001@php.net
Don't forget to apply the patch =)
------------------------------------------------------------------------
[2008-08-22 05:15:02] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45888&edit=1