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
 [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

Pull Requests

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: Thu Dec 26 15:01:32 2024 UTC