cvs commit

From: Date: Mon, 05 Jul 1999 04:49:14 +0000
Subject: cvs commit
Groups: php.version4 
Request: Send a blank email to php-version4+get-1890@lists.php.net to get a copy of this message
From: thies Date: Mon Jul 5 04:49:14 1999 Modified files: php4/ext/oci8/oci8.c Log message: fixed mem-leak Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.6 php4/ext/oci8/oci8.c:1.7 --- php4/ext/oci8/oci8.c:1.6 Mon Jul 5 02:29:04 1999 +++ php4/ext/oci8/oci8.c Mon Jul 5 04:49:13 1999 @@ -33,7 +33,7 @@ #define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */ -/* $Id: oci8.c,v 1.6 1999/07/05 06:29:04 thies Exp $ */ +/* $Id: oci8.c,v 1.7 1999/07/05 08:49:13 thies Exp $ */ /* TODO list: * @@ -1032,7 +1032,7 @@ } } -#if 0 /* testing */ +#if 1 /* testing */ { ub4 prefetch = 512*1024; @@ -1041,7 +1041,7 @@ "OCIAttrSet OCI_ATTR_PREFETCH_MEMORY", OCIAttrSet(statement->pStmt, OCI_HTYPE_STMT, - 512*1024, //&prefetch, + &prefetch, 0, OCI_ATTR_PREFETCH_MEMORY, statement->pError)); @@ -3170,6 +3170,8 @@ if ((mode & OCI_NUM) || (! (mode & OCI_ASSOC))) { /* OCI_NUM is default */ oci8_make_pval(element,statement,column, "OCIFetchInto",mode); #if PHP_API_VERSION >= 19990421 + element->is_ref = 0; + element->refcount = 1; _php3_hash_index_update(array->value.ht, i, (void *)&element, sizeof(pval*), NULL); #else _php3_hash_index_update(array->value.ht, i, (void *)element, sizeof(pval), NULL);

« previous php.version4 (#1890) next »