]> granicus.if.org Git - php/commitdiff
MFH: skip BFILE tests if Oracle is not on localhost
authorAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 13:00:01 +0000 (13:00 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 13:00:01 +0000 (13:00 +0000)
ext/oci8/tests/connect.inc
ext/oci8/tests/details.inc [new file with mode: 0644]
ext/oci8/tests/lob_029.phpt

index 887c8fdaa107eda36774b5a60ed486040ad2bc41..452976e8fe4577dfc3ee51e31bc45828d8a3f8e0 100644 (file)
@@ -1,13 +1,6 @@
 <?php
 
-/* 
- * Please, change user, password and dbase to match your configuration.
- * 
- * */
-$user       = "system";
-$password   = "system";
-$dbase      = "oracle";
+include "details.inc";
 
 /* 
  * You should have privileges to create tables in this schema 
diff --git a/ext/oci8/tests/details.inc b/ext/oci8/tests/details.inc
new file mode 100644 (file)
index 0000000..6cf13ac
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+/* 
+* Please, change user, password and dbase to match your configuration.
+* 
+* */
+
+$user       = "system";
+$password   = "system";
+$dbase      = "oracle";
+
+/* Set this variable to TRUE if Oracle is installed @ localhost */
+
+$oracle_on_localhost = FALSE;
+
+?>
index aaab68b55d95ad4662beb306a0514fae555b5b08..9718b3621cc2feeaec8b36edcc6c66ec2d84e79a 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 reading/writing BFILE LOBs
 --SKIPIF--
-<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
+<?php if (!extension_loaded('oci8')) die("skip no oci8 extension");
+include "details.inc";
+if (empty($oracle_on_localhost)) die("skip this test won't work with remote Oracle");
+?>
 --FILE--
 <?php