--TEST--
DRCP: oci_pconnect() with scope end when oci8.old_oci_close_semantics ON
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--INI--
oci8.old_oci_close_semantics=1
--FILE--
<?php
require dirname(__FILE__)."/drcp_functions.inc";
require dirname(__FILE__)."/details.inc";
$c = oci_new_connect($user,$password,$dbase);
@drcp_drop_table($c);
drcp_create_table($c);
echo "This is with a OCI_PCONNECT\n";
function1($user,$password,$dbase);
function2($user,$password,$dbase);
function function1($user,$password,$dbase)
{
var_dump($c = oci_pconnect($user,$password,$dbase));
drcp_update_table($c);
}
function function2($user,$password,$dbase)
{
var_dump($c = oci_pconnect($user,$password,$dbase));
drcp_select_value($c);
}
drcp_drop_table($c);
oci_close($c);
echo "Done\n";
?>
--EXPECTF--
This is with a OCI_PCONNECT
resource(%d) of type (oci8 persistent connection)
Update done-- DEPT value has been set to NEWDEPT
resource(%d) of type (oci8 persistent connection)
The value of DEPT for id 105 is NEWDEPT
Warning: oci_execute(): ORA-00054: %s
Done