Skip to content

Commit 08fafd4

Browse files
php-genericsCursor
andcommitted
Initialize generic_args to NULL in FFI object init
Co-Authored-By: Cursor <noreply@cursor.com>
1 parent f7e7264 commit 08fafd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/ffi/ffi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ static zend_always_inline void zend_ffi_object_init(zend_object *object, zend_cl
244244
object->ce = ce;
245245
object->handlers = ce->default_object_handlers;
246246
object->properties = NULL;
247+
object->generic_args = NULL;
247248
zend_objects_store_put(object);
248249
}
249250
/* }}} */

0 commit comments

Comments
 (0)