Skip to content

Commit ed9c01a

Browse files
committed
Reset persistent attribute
1 parent 7e81c9b commit ed9c01a

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
@@ -6620,6 +6620,7 @@ void zend_ffi_declare(const char *name, size_t name_len, zend_ffi_dcl *dcl) /* {
66206620
zend_ffi_type *type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
66216621

66226622
memcpy(type, ZEND_FFI_TYPE(dcl->type), sizeof(zend_ffi_type));
6623+
type->attr &= ~ZEND_FFI_ATTR_PERSISTENT;
66236624
type->attr |= FFI_G(default_type_attr);
66246625
type->align = dcl->align;
66256626
dcl->type = ZEND_FFI_TYPE_MAKE_OWNED(type);

0 commit comments

Comments
 (0)