thekid Sun Feb 8 18:58:47 2004 EDT
Modified files:
/php-src/ext/sybase_ct/tests test.inc
Log:
- Made server name and credentials contain something obviously incorrect.
- Made charset parameter default to "iso_1" (fixed "Sybase: Unable to
update character set." warnings which were failing all tests when the
official Sybase libraries were used - FreeTDS ignores this).
http://cvs.php.net/diff.php/php-src/ext/sybase_ct/tests/test.inc?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/sybase_ct/tests/test.inc
diff -u php-src/ext/sybase_ct/tests/test.inc:1.1
php-src/ext/sybase_ct/tests/test.inc:1.2
--- php-src/ext/sybase_ct/tests/test.inc:1.1 Fri Jan 23 21:18:13 2004
+++ php-src/ext/sybase_ct/tests/test.inc Sun Feb 8 18:58:46 2004
@@ -1,13 +1,13 @@
<?php
/* This file is part of PHP test framework for ext/sybase_ct
*
- * $Id: test.inc,v 1.1 2004/01/24 02:18:13 thekid Exp $
+ * $Id: test.inc,v 1.2 2004/02/08 23:58:46 thekid Exp $
*/
// Change if needed
- define('HOST', 'php3');
- define('USER', 'news');
- define('PASSWORD', 'stuemper');
+ define('HOST', '****');
+ define('USER', '****');
+ define('PASSWORD', '****');
// {{{ bool sybase_msg_handler(int msgnumber, int severity, int state, int line,
string text)
// Handles server messages
@@ -52,7 +52,7 @@
// Connect to the sybase server using the defines HOST, USER and PASSWORD
function sybase_connect_ex($charset= NULL, $appname= NULL) {
sybase_min_server_severity(11); // Suppress "changed database context"
- if (!($db= sybase_connect(HOST, USER, PASSWORD, $charset, $appname))) {
+ if (!($db= sybase_connect(HOST, USER, PASSWORD, $charset ? $charset : 'iso_1',
$appname))) {
die('Connect to '.USER.'@'.HOST.' failed (using password: '.(PASSWORD ? 'yes' :
'no').')');
}
return $db;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php