[PHP-DEV] [PATCH] sybase_ct connection reference count From: Paul Moosman (PWMoosman <email protected>)
Date: 06/29/01

Bug #11489

Attached is a patch to php_sybase_ct.c version 1.47 that fixes bug #11489

--
Paul Moosman
PWMoosman <email protected>

Index: php_sybase_ct.c =================================================================== RCS file: /repository/php4/ext/sybase_ct/php_sybase_ct.c,v retrieving revision 1.47 diff -u -r1.47 php_sybase_ct.c --- php_sybase_ct.c 2001/06/26 21:00:13 1.47 +++ php_sybase_ct.c 2001/06/28 19:19:06 @@ -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)); }

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>