cvs: php4 /ext/informix ifx.ec

From: Date: Tue, 05 Sep 2000 18:21:57 +0000
Subject: cvs: php4 /ext/informix ifx.ec
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1584@lists.php.net to get a copy of this message
danny Tue Sep 5 11:21:57 2000 EDT Modified files: /php4/ext/informix ifx.ec Log: - back out unneeded patch (danny). Index: php4/ext/informix/ifx.ec diff -u php4/ext/informix/ifx.ec:1.48 php4/ext/informix/ifx.ec:1.49 --- php4/ext/informix/ifx.ec:1.48 Mon Sep 4 14:18:06 2000 +++ php4/ext/informix/ifx.ec Tue Sep 5 11:21:57 2000 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ifx.ec,v 1.48 2000/09/04 21:18:06 danny Exp $ */ +/* $Id: ifx.ec,v 1.49 2000/09/05 18:21:57 danny Exp $ */ /* ------------------------------------------------------------------- * if you want a function reference : "grep '^\*\*' ifx.ec" will give @@ -1805,15 +1805,10 @@ ifx_errmsg[0] = 0; } - returnmsg = (char *) malloc(strlen(ifx_errmsg) + 128); + returnmsg = (char *) emalloc(strlen(ifx_errmsg) + 128); sprintf(returnmsg,ifx_errmsg, sqlca.sqlerrm); free(ifx_errmsg); - //RETURN_STRING(returnmsg,1); // can not use the macro, have to free the memory - return_value->value.str.len = strlen(returnmsg); - return_value->value.str.val = estrndup(returnmsg,return_value->value.str.len); - return_value->type = IS_STRING; - free(returnmsg); - return; + RETURN_STRING(returnmsg,0); } /* }}} */

« previous php.cvs (#1584) next »