php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62496 OCI Session Pool Flag Incorrectly Set
Submitted: 2012-07-06 13:47 UTC Modified: 2012-07-10 17:47 UTC
From: Paul dot L dot Merchant dot Jr at dartmouth dot edu Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.4.4 OS: Any
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:
50 - 3 = ?
Subscribe to this entry?

 
 [2012-07-06 13:47 UTC] Paul dot L dot Merchant dot Jr at dartmouth dot edu
Description:
------------
In PHP 5.4 through 5.4.4, the oci8 source file (ext/oci/oci8.c) contains this 
nonsensical 
code in php_oci_create_session:


	if (!connection->using_spool) {
		connection->using_spool = 1;
	}


The effect of this line is to always set the boolean using_spool to a non-zero 
value.  I 
suspect that this causes a difficult to reproduce series of failures in long 
running 
server processes by causing resource cleanup to proceed incorrectly.

I suspect the test should be 

	if (!connection->private_spool) {
		connection->using_spool = 1;
	}

but I'm not familiar enough with the session pooling features to be sure.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-10 17:47 UTC] sixd@php.net
-Status: Open +Status: Not a bug -Package: Oracle related +Package: OCI8 related
 [2012-07-10 17:47 UTC] sixd@php.net
While that code could be simplified, the current effect of setting using_spool is 
intended.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 19:01:28 2024 UTC