Don't directly access refcount in interbase

This commit is contained in:
Nikita Popov 2017-12-31 12:32:29 +01:00
parent 27f09efa11
commit 2d083a3da7

View File

@ -945,8 +945,8 @@ static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /*
if (IBG(default_link)) {
zend_list_close(IBG(default_link));
}
xlink->gc.refcount++;
xlink->gc.refcount++;
GC_ADDREF(xlink);
GC_ADDREF(xlink);
IBG(default_link) = xlink;
RETVAL_RES(xlink);
} else {