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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 07:01:26 2025 UTC