Skip to content

Commit a0665b9

Browse files
committed
Don't directly access refcount in interbase
1 parent 9115516 commit a0665b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interbase.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,8 @@ static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /*
945945
if (IBG(default_link)) {
946946
zend_list_close(IBG(default_link));
947947
}
948-
xlink->gc.refcount++;
949-
xlink->gc.refcount++;
948+
GC_ADDREF(xlink);
949+
GC_ADDREF(xlink);
950950
IBG(default_link) = xlink;
951951
RETVAL_RES(xlink);
952952
} else {

0 commit comments

Comments
 (0)