php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36057 php_oci8.dll not thread safe?
Submitted: 2006-01-17 17:48 UTC Modified: 2006-01-18 00:48 UTC
From: ottawasixtyseven at hotmail dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 5.1.2 OS: W2K/IIS5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ottawasixtyseven at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-01-17 17:48 UTC] ottawasixtyseven at hotmail dot com
Description:
------------
It appears that php_oci8.dll is not thread safe. We're trying to run PHP 5.1 in ISAPI mode using php_oci8.dll to connect to Oracle.

We can use ODBC instead of php_oci8.dll but this slows things down by as much as three times. We can also use PHP in CGI mode with php_oci8.dll but this also adversely effects performance.

I guess we're just looking for confirmation here. If it's a known issue that php_oci8.dll is not thread safe then we'll have to find another solution.

Reproduce code:
---------------
Any code will reproduce this. We are using phpinfo(). We are aware that phpinfo() leaks on purpose (not a bug) but for the purposes of this testing we're not concerned about memory leaks as the test only runs for 5 minutes.

Expected result:
----------------
Expect the web server not to crash during load test. 

Actual result:
--------------
Server crashes after 20 seconds with thousands of HTTP errors. Works perfectly in ODBC mode.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-17 18:22 UTC] tony2001@php.net
Works perfectly fine with threaded web-servers like Apache2.
 [2006-01-17 18:46 UTC] ottawasixtyseven at hotmail dot com
Is IIS5 a threaded web server?
 [2006-01-17 19:03 UTC] tony2001@php.net
I guess so.
 [2006-01-18 00:48 UTC] tony2001@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 10:01:30 2024 UTC