CVS update: php3/functions

From: Date: Thu, 07 Jan 1999 14:17:32 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3370@lists.php.net to get a copy of this message
Date: Thursday January 7, 1999 @ 9:17 Author: sas Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv14474 Modified Files: wddx.c Log Message: minor changes Index: php3/functions/wddx.c diff -c php3/functions/wddx.c:1.2 php3/functions/wddx.c:1.3 *** php3/functions/wddx.c:1.2 Wed Jan 6 07:58:17 1999 --- php3/functions/wddx.c Thu Jan 7 09:17:32 1999 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: wddx.c,v 1.2 1999/01/06 12:58:17 sas Exp $ */ #include "php.h" #include "internal_functions.h" --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: wddx.c,v 1.3 1999/01/07 14:17:32 sas Exp $ */ #include "php.h" #include "internal_functions.h" *************** *** 230,237 **** wddx->len += strlen(s); \ if(wddx->buf) \ wddx->buf = erealloc(wddx->buf, wddx->len + 1); \ ! else \ wddx->buf = emalloc(wddx->len + 1); \ strcat(wddx->buf, s); } /* is this the first element of a list? */ --- 230,239 ---- wddx->len += strlen(s); \ if(wddx->buf) \ wddx->buf = erealloc(wddx->buf, wddx->len + 1); \ ! else {\ wddx->buf = emalloc(wddx->len + 1); \ + wddx->buf[0] = '\0'; \ + } \ strcat(wddx->buf, s); } /* is this the first element of a list? */ *************** *** 361,367 **** RETURN_FALSE; } ! str = _php3_wddx_struct(arg->value.ht); new = emalloc(strlen(str) + 100); sprintf(new, "<wddxPacket version='0.9'><header/><data>%s" "</data></wddxPacket>", str); --- 363,369 ---- RETURN_FALSE; } ! str = _php3_wddx_struct_or_array(arg->value.ht); new = emalloc(strlen(str) + 100); sprintf(new, "<wddxPacket version='0.9'><header/><data>%s" "</data></wddxPacket>", str); -- 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 (#3370) next »