Skip to content

Commit 318c386

Browse files
committed
Use the new GC API
1 parent b2ba31e commit 318c386

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/curl/interface.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,8 +1270,9 @@ static HashTable *curl_get_gc(zend_object *object, zval **table, int *n)
12701270
{
12711271
php_curl *curl = curl_from_obj(object);
12721272

1273-
*table = &curl->postfields;
1274-
*n = 1;
1273+
zend_get_gc_buffer *gc_buffer = zend_get_gc_buffer_create();
1274+
zend_get_gc_buffer_add_zval(gc_buffer, &curl->postfields);
1275+
zend_get_gc_buffer_use(gc_buffer, table, n);
12751276

12761277
return zend_std_get_properties(object);
12771278
}

0 commit comments

Comments
 (0)