Bug #11489

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



--
Paul Moosman
[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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to