#36057 [Fbk->Csd]: php_oci8.dll not thread safe?
ID: 36057
Updated by: tony2001@php.net
Reported By: ottawasixtyseven at hotmail dot com
-Status: Feedback
+Status: Closed
Bug Type: OCI8 related
Operating System: W2K/IIS5
PHP Version: 5.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-01-17 19:03:39] tony2001@php.net
I guess so.
------------------------------------------------------------------------
[2006-01-17 18:46:39] ottawasixtyseven at hotmail dot com
Is IIS5 a threaded web server?
------------------------------------------------------------------------
[2006-01-17 18:22:22] tony2001@php.net
Works perfectly fine with threaded web-servers like Apache2.
------------------------------------------------------------------------
[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
Thread (5 messages)