CVS update: php3/functions

From: Date: Thu, 13 Aug 1998 20:31:21 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-175@lists.php.net to get a copy of this message
Date: Thursday August 13, 1998 @ 16:31 Author: zeev Update of /repository/php3/functions In directory asf:/tmp/cvs-serv510/functions Modified Files: sybase.c Log Message: Fix for #647 Index: php3/functions/sybase.c diff -c php3/functions/sybase.c:1.104 php3/functions/sybase.c:1.105 *** php3/functions/sybase.c:1.104 Sun Jul 12 17:40:18 1998 --- php3/functions/sybase.c Thu Aug 13 16:31:20 1998 *************** *** 31,37 **** +----------------------------------------------------------------------+ */ ! /* $Id: sybase.c,v 1.104 1998/07/12 21:40:18 zeev Exp $ */ #ifndef MSVC5 --- 31,37 ---- +----------------------------------------------------------------------+ */ ! /* $Id: sybase.c,v 1.105 1998/08/13 20:31:20 zeev Exp $ */ #ifndef MSVC5 *************** *** 638,643 **** --- 638,657 ---- int res_length = dbdatlen(sybase_ptr->link,offset); register char *p; + switch (coltype(offset)) { + case SYBBINARY: + case SYBVARBINARY: + case SYBCHAR: + case SYBVARCHAR: + case SYBTEXT: + case SYBIMAGE: + break; + default: + /* take no chances, no telling how big the result would really be */ + res_length += 20; + break; + } + res_buf = (char *) emalloc(res_length+1); dbconvert(NULL,coltype(offset),dbdata(sybase_ptr->link,offset), res_length,SYBCHAR,res_buf,-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 (#175) next »