From: Timm Friebe Date: Sun, 8 Feb 2004 23:58:46 +0000 (+0000) Subject: - Made server name and credentials contain something obviously incorrect. X-Git-Tag: php-5.0.0b4RC1~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06ab4e69db6366e26f857eea0550e1e278bdd9f6;p=php - 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). --- diff --git a/ext/sybase_ct/tests/test.inc b/ext/sybase_ct/tests/test.inc index 1a57bcb877..48aa7d23b3 100644 --- a/ext/sybase_ct/tests/test.inc +++ b/ext/sybase_ct/tests/test.inc @@ -5,9 +5,9 @@ */ // 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;