summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-04-03 15:24:11 +0000
committerArd Biesheuvel <abies@php.net>2004-04-03 15:24:11 +0000
commit2daf7303b21921721c984238bd9e1cf29099a803 (patch)
tree4e554d94d6ce65d50a7b3c8afa3ff74f9525e656
parentde56cc51a8b90b4ad5addc4159a2746236a3ca6c (diff)
downloadphp-git-2daf7303b21921721c984238bd9e1cf29099a803.tar.gz
Don't rely on OS-based authentication (as it is not supported under Win32)
-rwxr-xr-xext/interbase/tests/interbase.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/interbase/tests/interbase.inc b/ext/interbase/tests/interbase.inc
index 668cf0d58a..5f43d1cdc2 100755
--- a/ext/interbase/tests/interbase.inc
+++ b/ext/interbase/tests/interbase.inc
@@ -2,14 +2,20 @@
srand((double)microtime()*1000000);
+$user = 'SYSDBA';
+$password = 'masterkey';
+ini_set('ibase.default_user',$user);
+ini_set('ibase.default_password',$password);
+
/* we need just the generated name, not the file itself */
unlink($test_base = tempnam('/tmp',"php_ibase_test"));
function init_db()
{
- global $test_base;
+ global $test_base, $user, $password;
- $test_db = ibase_query("CREATE DATABASE \"$test_base\"");
+ $test_db = ibase_query(sprintf("CREATE DATABASE '%s' USER '%s' PASSWORD '%s'",
+ $test_base, $user, $password));
$tr = ibase_trans($test_db);
ibase_query($tr,"create table test1 (i integer, c varchar(100))");
ibase_commit_ret($tr);