CVS update: php3/functions

From: Date: Wed, 04 Nov 1998 02:39:44 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2184@lists.php.net to get a copy of this message
Date: Tuesday November 3, 1998 @ 21:39 Author: tommay Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv6191 Modified Files: sybase-ct.c Log Message: Set datetime conversion format to "Nov 3 1998 8:06PM". This is the default format for the ct-lib that comes with Sybase ASE 11.5.1 for Solaris, but the Linux libraries that come with 11.0.3.3 default to "03/11/98" which is singularly useless. This levels the playing field for all platforms. Sorry if this breaks code that expects some other format, but you can always sybase's convert() function to get the date in the format you want. Index: php3/functions/sybase-ct.c diff -c php3/functions/sybase-ct.c:1.50 php3/functions/sybase-ct.c:1.51 *** php3/functions/sybase-ct.c:1.50 Tue Nov 3 20:23:50 1998 --- php3/functions/sybase-ct.c Tue Nov 3 21:39:44 1998 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: sybase-ct.c,v 1.50 1998/11/04 01:23:50 tommay Exp $ */ #ifndef MSVC5 --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: sybase-ct.c,v 1.51 1998/11/04 02:39:44 tommay Exp $ */ #ifndef MSVC5 *************** *** 229,234 **** --- 229,246 ---- php3_error(E_WARNING,"Sybase: Unable to set client message handler"); } + /* Set datetime conversion format to "Nov 3 1998 8:06PM". + * This is the default format for the ct-lib that comes with + * Sybase ASE 11.5.1 for Solaris, but the Linux libraries that + * come with 11.0.3.3 default to "03/11/98" which is singularly + * useless. This levels the playing field for all platforms. + */ + { + CS_INT dt_convfmt = CS_DATES_SHORT; + if (cs_dt_info(context, CS_SET, NULL, CS_DT_CONVFMT, CS_UNUSED, &dt_convfmt, sizeof(dt_convfmt), NULL)!=CS_SUCCEED) { + php3_error(E_WARNING,"Sybase: Unable to set datetime conversion format"); + } + } if (cfg_get_long("sybct.allow_persistent",&php3_sybct_module.allow_persistent)==FAILURE) { php3_sybct_module.allow_persistent=1; -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2184) next »