tony2001 Tue Dec 12 12:57:02 2006 UTC
Added files:
/php-src/ext/oci8/tests details.inc
Modified files:
/php-src/ext/oci8/tests connect.inc lob_029.phpt
Log:
BFILE tests are only valid when Oracle is installed on the same host
skip them if it's not
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/connect.inc?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/oci8/tests/connect.inc
diff -u php-src/ext/oci8/tests/connect.inc:1.3
php-src/ext/oci8/tests/connect.inc:1.4
--- php-src/ext/oci8/tests/connect.inc:1.3 Tue Sep 6 19:33:18 2005
+++ php-src/ext/oci8/tests/connect.inc Tue Dec 12 12:57:02 2006
@@ -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
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/lob_029.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/oci8/tests/lob_029.phpt
diff -u php-src/ext/oci8/tests/lob_029.phpt:1.1
php-src/ext/oci8/tests/lob_029.phpt:1.2
--- php-src/ext/oci8/tests/lob_029.phpt:1.1 Tue Dec 12 09:33:17 2006
+++ php-src/ext/oci8/tests/lob_029.phpt Tue Dec 12 12:57:02 2006
@@ -1,7 +1,11 @@
--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
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/details.inc?view=markup&rev=1.1
Index: php-src/ext/oci8/tests/details.inc
+++ php-src/ext/oci8/tests/details.inc
<?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;
?>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php