ID: 36634 Updated by: [EMAIL PROTECTED] Reported By: zhang_yinshu at yahoo dot com -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: Gentoo Linux PHP Version: 5.1.2 New Comment:
oci_pconnect() means you're using these connections in a script, so they do not timeout because of that. No bug here. Previous Comments: ------------------------------------------------------------------------ [2006-03-06 21:27:28] zhang_yinshu at yahoo dot com a test script of course, use class: <? include ('db.class.php'); $db=new db('xxxxx','xxxx','xxxxxx'); $db->query("select * from tab"); echo $db->to_string(); ?> part of db.class.php: function db_open($user,$pass,$db) { if (!$this -> _connection = oci_pconnect($user,$pass,$db)) { err ("Can not open database connection user:$user,db:$db, error:".print_r(ocierror())); $this->__destruct(); } } ------------------------------------------------------------------------ [2006-03-06 21:16:45] [EMAIL PROTECTED] And you don't run any PHP scripts in the same time? ------------------------------------------------------------------------ [2006-03-06 21:08:43] zhang_yinshu at yahoo dot com by query v$session view from Oracle database ------------------------------------------------------------------------ [2006-03-06 21:06:23] [EMAIL PROTECTED] How do you determine if they are "inactive" or not? ------------------------------------------------------------------------ [2006-03-06 21:02:20] zhang_yinshu at yahoo dot com [did] specify below statements in php.ini oci8.max_persistent = 20 oci8.persistent_timeout = 60 oci8.ping_interval = -1 info() confirm with oci8 OCI8 Support enabled Revision $Revision: 1.269.2.8 $ Active Persistent Connections 0 Active Connections 0 Oracle Version 9.2 Compile-time ORACLE_HOME /oracle/product/9.2.0 Libraries Used no value Temporary Lob support enabled Collections support enabled oci8.default_prefetch 10 10 oci8.max_persistent 20 20 oci8.old_oci_close_semantics 0 0 oci8.persistent_timeout 60 60 oci8.ping_interval -1 -1 oci8.privileged_connect Off Off oci8.statement_cache_size 20 20 [want]: oracle session opened by oci_pconnection be closed after inactive for 60sec. [see]: oracle session persist. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36634 -- Edit this bug report at http://bugs.php.net/?id=36634&edit=1