We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68584b5 commit fe14c4cCopy full SHA for fe14c4c
ext/ffi/ffi.c
@@ -3709,18 +3709,14 @@ ZEND_METHOD(FFI, new) /* {{{ */
3709
is_const = 1;
3710
}
3711
3712
- if (Z_TYPE(EX(This)) != IS_OBJECT) {
3713
- if (FFI_G(tags)) {
3714
- zend_ffi_tags_cleanup(&dcl);
3715
- }
3716
- if (FFI_G(symbols)) {
3717
- zend_hash_destroy(FFI_G(symbols));
3718
- efree(FFI_G(symbols));
3719
- FFI_G(symbols) = NULL;
3720
+ if (FFI_G(tags)) {
+ zend_ffi_tags_cleanup(&dcl);
+ }
+ if (FFI_G(symbols)) {
+ zend_hash_destroy(FFI_G(symbols));
+ efree(FFI_G(symbols));
+ FFI_G(symbols) = NULL;
3721
3722
3723
- FFI_G(tags) = NULL;
3724
3725
type_ptr = dcl.type;
3726
} else {
0 commit comments