From: zbodirog at socgen dot com Operating system: Windows 2000 server PHP version: 5.2.4 PHP Bug Type: OCI8 related Bug description: oci_new_connect don't make new connection
Description: ------------ Sorry for selecting PHP version that we don't have but only on that way I could send you this bug. Reason for that is that it is very difficultu at this point to change version but if you confirm me that that is the only way to solve this problem than we will do it. We use Oracle 9.2.1.6, PHP 5.0.4. In query we call stored procedure that returns xml. Problem is that when I call some query that take some time to execute (for example 2 minutes) php create one connection to oracle that is active. When other users try to call some other query php don't create new connection and wait until first procedure (or query) is done. I try to make several connections with oci_new_connect and it only work when connections are inactive, when I have some connection that is active it wait's until that connection is released. Thanks! Reproduce code: --------------- function get_xml() { $obj_dbms = new dbms_oracle(); $cnnID = $obj_dbms->database_connect(); $out_xml = OCINewDescriptor($cnnID, OCI_D_LOB); $stored_proc = OCIParse($cnnID,$query); oci_bind_by_name($stored_proc, ":out_xml", $out_xml, -1, OCI_B_CLOB); OCIExecute($stored_proc); $obj_dbms->database_disconnect($cnnID); } class dbms_oracle { function database_connect() { $cnnID = oci_new_connect($username,$password,$database); return $cnnID; } Expected result: ---------------- I expect that many users can execute function get_xml() regardless if some of them call procedure that take some time or not. Now if some call procedure of that type others can't work. -- Edit bug report at http://bugs.php.net/?id=42781&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42781&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42781&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42781&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42781&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42781&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42781&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42781&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42781&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42781&r=support Expected behavior: http://bugs.php.net/fix.php?id=42781&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42781&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42781&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42781&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42781&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42781&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42781&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42781&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42781&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42781&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42781&r=mysqlcfg