From: bruno at uniconsult dot com dot br Operating system: linux PHP version: 5.2.11 PHP Bug Type: OCI8 related Bug description: Problems with oci_pconnect()
Description: ------------ I got some problems with an application using persistent connections. When calling the oci_pconnect() function, if for any reason i got no response from the database, the PHP script keeps waiting and there is not a way to timeout it. In a unix shell script this can be solved using alarms and signals. Is there some oci8 approach to handle connections timeouts? Important, my problem is not in closing the connection in database, is to get some response when oci_pconnect() get no response and a way to handle it. I made a shell script to trace the execution stack and I noticed that the last call 'hangs': #0 0x000000335370b222 in __read_nocancel () from /lib64/tls/libpthread.so.0 #1 0x0000002a97cc283e in snttread () #2 0x0000002a97cc25f9 in nttfprd () #3 0x0000002a97cba86e in nsbasic_brc () #4 0x0000002a97cbd6d1 in nsbrecv () #5 0x0000002a97cac4fd in nioqrc () #6 0x0000002a97ce7642 in ttcdrv () #7 0x0000002a97cb310d in nioqwa () #8 0x0000002a97c9976b in upirtrc () #9 0x0000002a963d8349 in upirtr () #10 0x0000002a9645e369 in upiver () #11 0x0000002a96ddaa80 in kpuvers () #12 0x0000002a96cce2cb in OCIServerVersion () #13 0x0000002a958ff12a in php_oci_do_connect_ex () #14 0x0000002a958ff580 in php_oci_do_connect () #15 0x0000002a9590a2e6 in zif_oci_pconnect () #16 ... -- Edit bug report at http://bugs.php.net/?id=49615&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49615&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49615&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49615&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49615&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49615&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49615&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49615&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49615&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49615&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49615&r=support Expected behavior: http://bugs.php.net/fix.php?id=49615&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49615&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49615&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49615&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49615&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49615&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49615&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49615&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49615&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49615&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49615&r=mysqlcfg
