nobbie Mon Feb 24 01:34:37 2003 EDT
Modified files:
/php4/ext/informix ifx.ec
Log:
(PHP ifx_errormsg) Fixed Informix bug where ifx_errormsg() would Segfault
on an unopened connecection and with an errorcode supplied
Index: php4/ext/informix/ifx.ec
diff -u php4/ext/informix/ifx.ec:1.81 php4/ext/informix/ifx.ec:1.82
--- php4/ext/informix/ifx.ec:1.81 Fri Feb 21 01:50:24 2003
+++ php4/ext/informix/ifx.ec Mon Feb 24 01:34:36 2003
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ifx.ec,v 1.81 2003/02/21 06:50:24 sniper Exp $ */
+/* $Id: ifx.ec,v 1.82 2003/02/24 06:34:36 nobbie Exp $ */
/* -------------------------------------------------------------------
* if you want a function reference : "grep '^\*\*' ifx.ec" will give
@@ -1650,6 +1650,7 @@
}
maxmsglen = 255;
+ msglen = maxmsglen; // Some bug fix, rgetlmsg doesnt always set the value
ifx_errmsg = (char *)malloc(maxmsglen + 1);
if (ifx_errorcode != 0) {
rgetlmsg(ifx_errorcode, ifx_errmsg, maxmsglen, &msglen);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php