summaryrefslogtreecommitdiff
path: root/ext/oci8/tests
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2008-02-16 01:20:22 +0000
committerChristopher Jones <sixd@php.net>2008-02-16 01:20:22 +0000
commit07a79208b61e4b5b168c1fd61630f311b5147ca7 (patch)
treee8f0f419bb1fb0c00a09f1b62b5f817799e626b0 /ext/oci8/tests
parent2f62d300f7978b184c4a4144805f8562d9c7a7ba (diff)
downloadphp-git-07a79208b61e4b5b168c1fd61630f311b5147ca7.tar.gz
Streamlined code and incorporated review comments. Respect oci8.ping_interval when oci_pconnect called multiple times in a script. Changed OCIServerVersion to OCIPing (http://pecl.php.net/bugs/bug.php?id=11976)
Diffstat (limited to 'ext/oci8/tests')
-rw-r--r--ext/oci8/tests/debug.phpt1
-rw-r--r--ext/oci8/tests/details.inc5
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/oci8/tests/debug.phpt b/ext/oci8/tests/debug.phpt
index 669c425394..2910ce3557 100644
--- a/ext/oci8/tests/debug.phpt
+++ b/ext/oci8/tests/debug.phpt
@@ -21,6 +21,7 @@ echo "Done\n";
?>
--EXPECTF--
OCI8 DEBUG: OCINlsEnvironmentVariableGet at (%s:%d)
+OCI8 DEBUG L1: Got a cached connection: (%s) at (%s:%d)
Done
OCI8 DEBUG: OCISessionRelease at (%s:%d)
OCI8 DEBUG: OCIHandleFree at (%s:%d)
diff --git a/ext/oci8/tests/details.inc b/ext/oci8/tests/details.inc
index c09212fd2a..226ab359de 100644
--- a/ext/oci8/tests/details.inc
+++ b/ext/oci8/tests/details.inc
@@ -19,6 +19,11 @@ if (false !== getenv('PHP_OCI8_TEST_DB')) {
$password = getenv('PHP_OCI8_TEST_PASS'); // Password for $user
$dbase = getenv('PHP_OCI8_TEST_DB'); // Database connection string
$test_drcp = getenv('PHP_OCI8_TEST_DRCP');
+ if (false !== $test_drcp && 0 == strcasecmp($test_drcp,'TRUE')) {
+ $test_drcp = TRUE;
+ } else {
+ $test_drcp = FALSE;
+ }
$oracle_on_localhost = getenv('PHP_OCI8_TEST_DB_ON_LOCALHOST');
if (false !== $oracle_on_localhost && 0 == strcasecmp($oracle_on_localhost,'TRUE')) {
$oracle_on_localhost = TRUE;