From: Ard Biesheuvel Date: Sat, 3 Apr 2004 15:24:11 +0000 (+0000) Subject: Don't rely on OS-based authentication (as it is not supported under Win32) X-Git-Tag: php-5.0.0RC2RC1~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2daf7303b21921721c984238bd9e1cf29099a803;p=php Don't rely on OS-based authentication (as it is not supported under Win32) --- 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);