summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/connect_scope1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8/tests/connect_scope1.phpt')
-rw-r--r--ext/oci8/tests/connect_scope1.phpt28
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/oci8/tests/connect_scope1.phpt b/ext/oci8/tests/connect_scope1.phpt
index aefee2f882..684103b9f3 100644
--- a/ext/oci8/tests/connect_scope1.phpt
+++ b/ext/oci8/tests/connect_scope1.phpt
@@ -10,14 +10,14 @@ require(__DIR__.'/details.inc');
// Initialization
$stmtarray = array(
- "drop table connect_scope1_tab",
- "create table connect_scope1_tab (c1 number)",
+ "drop table connect_scope1_tab",
+ "create table connect_scope1_tab (c1 number)",
);
if (!empty($dbase))
- $c1 = oci_new_connect($user,$password,$dbase);
+ $c1 = oci_new_connect($user,$password,$dbase);
else
- $c1 = oci_new_connect($user,$password);
+ $c1 = oci_new_connect($user,$password);
oci8_test_sql_execute($c1, $stmtarray);
@@ -27,15 +27,15 @@ echo "Test 1 - oci_connect\n";
function f()
{
- global $user, $password, $dbase;
-
- if (!empty($dbase))
- $c = oci_connect($user,$password,$dbase);
- else
- $c = oci_connect($user,$password);
- $s = oci_parse($c, "insert into connect_scope1_tab values (1)");
- oci_execute($s, OCI_DEFAULT); // no commit
- return($s); // this keeps the connection refcount positive so the connection isn't closed
+ global $user, $password, $dbase;
+
+ if (!empty($dbase))
+ $c = oci_connect($user,$password,$dbase);
+ else
+ $c = oci_connect($user,$password);
+ $s = oci_parse($c, "insert into connect_scope1_tab values (1)");
+ oci_execute($s, OCI_DEFAULT); // no commit
+ return($s); // this keeps the connection refcount positive so the connection isn't closed
}
$s2 = f();
@@ -60,7 +60,7 @@ var_dump($r);
// Cleanup
$stmtarray = array(
- "drop table connect_scope1_tab"
+ "drop table connect_scope1_tab"
);
oci8_test_sql_execute($c1, $stmtarray);