ID:               36634
 User updated by:  zhang_yinshu at yahoo dot com
 Reported By:      zhang_yinshu at yahoo dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         OCI8 related
 Operating System: Gentoo Linux
 PHP Version:      5.1.2
 New Comment:

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();
}
}


Previous Comments:
------------------------------------------------------------------------

[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.

------------------------------------------------------------------------

[2006-03-06 20:22:15] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




------------------------------------------------------------------------

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

Reply via email to