#36057 [Opn->Fbk]: php_oci8.dll not thread safe?
| From: | tony2001@php.net | Date: | Tue, 17 Jan 2006 17:22:23 +0000 |
| Subject: | #36057 [Opn->Fbk]: php_oci8.dll not thread safe? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92085@lists.php.net to get a copy of this message | ||
ID: 36057
Updated by: tony2001@php.net
Reported By: ottawasixtyseven at hotmail dot com
-Status: Open
+Status: Feedback
-Bug Type: Oracle related
+Bug Type: OCI8 related
Operating System: W2K
PHP Version: 5.1.2
New Comment:
Works perfectly fine with threaded web-servers like Apache2.
Previous Comments:
------------------------------------------------------------------------
[2006-01-17 17:48:58] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36057&edit=1