cvs: php4 /ext/sybase_ct php_sybase_ct.c

From: Date: Mon, 23 Jul 2001 16:10:12 +0000
Subject: cvs: php4 /ext/sybase_ct php_sybase_ct.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6327@lists.php.net to get a copy of this message
pwmoosman Mon Jul 23 12:10:12 2001 EDT Modified files: /php4/ext/sybase_ct php_sybase_ct.c Log: I added code to up the reference count of the database connection reference. This change fixes bug #11489 in php version 4.0.6. I derived this fix from the my_sql module. Index: php4/ext/sybase_ct/php_sybase_ct.c diff -u php4/ext/sybase_ct/php_sybase_ct.c:1.51 php4/ext/sybase_ct/php_sybase_ct.c:1.52 --- php4/ext/sybase_ct/php_sybase_ct.c:1.51 Wed Jul 11 08:42:23 2001 +++ php4/ext/sybase_ct/php_sybase_ct.c Mon Jul 23 12:10:10 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sybase_ct.c,v 1.51 2001/07/11 12:42:23 thies Exp $ */ +/* $Id: php_sybase_ct.c,v 1.52 2001/07/23 16:10:10 pwmoosman Exp $ */ #ifdef HAVE_CONFIG_H @@ -640,6 +640,7 @@ link = (int) index_ptr->ptr; ptr = zend_list_find(link, &type); /* check if the link is still there */ if (ptr && (type==le_link || type==le_plink)) { + zend_list_addref(link); return_value->value.lval = SybCtG(default_link) = link; return_value->type = IS_RESOURCE; efree(hashed_details); @@ -678,6 +679,7 @@ } efree(hashed_details); SybCtG(default_link)=return_value->value.lval; + zend_list_addref(SybCtG(default_link)); }

« previous php.cvs (#6327) next »