|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21215 OCI8 calls not taking advantage of SHARED_MODE
Submitted: 2002-12-27 11:23 UTC Modified: 2012-12-11 02:25 UTC
From: ldixon at mail dot communityconnect dot com Assigned: maxim (profile)
Status: Closed Package: OCI8 related
PHP Version: 4.2.3 OS: Linux 2.4
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.
Bug Type:
From: ldixon at mail dot communityconnect dot com
New email:
PHP Version: OS:


 [2002-12-27 11:23 UTC] ldixon at mail dot communityconnect dot com
OCIServerAttach() is used, implying that the module should take advantage of shared data mode, but OCIInitilize() was not passed SHARED_MODE flag (#define PHP_OCI_INIT_MODE OCI_DEFAULT), so I don't believe it's really taking advantage of shared data mode.  Excerpt from OCI8 docs:

To trigger OCI shared mode functionality, process handle parameters must be set and OCIInitialize() must be called with the mode flag set to OCI_SHARED. For example: 

OCIInitialize (mode, 0, 0, 0, 0);

The first application that initializes OCI in shared mode starts up the shared subsystem using the parameters set by that OCI application. When subsequent applications initialize using the shared mode, they use the previously started shared subsystem.

Using this should reduce memory usage when large number of simultaneous connections are open and large numbers of concurrent statements (differing only by bind values) are running.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-24 14:14 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

From what I see in CVS ldixon has already fixed this one himself. Will mark it as closed.
 [2012-12-11 02:23 UTC]
-Assigned To: +Assigned To: maxim
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 00:01:29 2024 UTC