]> granicus.if.org Git - php/commitdiff
- Made server name and credentials contain something obviously incorrect.
authorTimm Friebe <thekid@php.net>
Sun, 8 Feb 2004 23:58:46 +0000 (23:58 +0000)
committerTimm Friebe <thekid@php.net>
Sun, 8 Feb 2004 23:58:46 +0000 (23:58 +0000)
- 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).

ext/sybase_ct/tests/test.inc

index 1a57bcb877aaa5e2b749f2157cc4a32ac79541c4..48aa7d23b32c51767575226ce77966cbc79675af 100644 (file)
@@ -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;