@@ -3780,19 +3780,6 @@ ZEND_METHOD(FFI, new) /* {{{ */
37803780
37813781 if (zend_ffi_parse_type (ZSTR_VAL (type_def ), ZSTR_LEN (type_def ), & dcl ) == FAILURE ) {
37823782 zend_ffi_type_dtor (dcl .type );
3783- <<<<<<< HEAD
3784- if (is_static_call ) {
3785- if (FFI_G (tags )) {
3786- zend_hash_destroy (FFI_G (tags ));
3787- efree (FFI_G (tags ));
3788- FFI_G (tags ) = NULL ;
3789- }
3790- if (FFI_G (symbols )) {
3791- zend_hash_destroy (FFI_G (symbols ));
3792- efree (FFI_G (symbols ));
3793- FFI_G (symbols ) = NULL ;
3794- }
3795- = == == ==
37963783 if (clean_tags && FFI_G (tags )) {
37973784 zend_hash_destroy (FFI_G (tags ));
37983785 efree (FFI_G (tags ));
@@ -3802,7 +3789,6 @@ ZEND_METHOD(FFI, new) /* {{{ */
38023789 zend_hash_destroy (FFI_G (symbols ));
38033790 efree (FFI_G (symbols ));
38043791 FFI_G (symbols ) = NULL ;
3805- >>>>>>> PHP - 8.2
38063792 }
38073793 return ;
38083794 }
@@ -3812,25 +3798,13 @@ ZEND_METHOD(FFI, new) /* {{{ */
38123798 is_const = 1 ;
38133799 }
38143800
3815- <<<<<<< HEAD
3816- if (is_static_call ) {
3817- if (FFI_G (tags )) {
3818- zend_ffi_tags_cleanup (& dcl );
3819- }
3820- if (FFI_G (symbols )) {
3821- zend_hash_destroy (FFI_G (symbols ));
3822- efree (FFI_G (symbols ));
3823- FFI_G (symbols ) = NULL ;
3824- }
3825- = == == ==
38263801 if (clean_tags && FFI_G (tags )) {
38273802 zend_ffi_tags_cleanup (& dcl );
38283803 }
38293804 if (clean_symbols && FFI_G (symbols )) {
38303805 zend_hash_destroy (FFI_G (symbols ));
38313806 efree (FFI_G (symbols ));
38323807 FFI_G (symbols ) = NULL ;
3833- >>>>>>> PHP - 8.2
38343808 }
38353809 FFI_G (symbols ) = NULL ;
38363810 FFI_G (tags ) = NULL ;
@@ -3956,19 +3930,6 @@ ZEND_METHOD(FFI, cast) /* {{{ */
39563930
39573931 if (zend_ffi_parse_type (ZSTR_VAL (type_def ), ZSTR_LEN (type_def ), & dcl ) == FAILURE ) {
39583932 zend_ffi_type_dtor (dcl .type );
3959- <<<<<<< HEAD
3960- if (is_static_call ) {
3961- if (FFI_G (tags )) {
3962- zend_hash_destroy (FFI_G (tags ));
3963- efree (FFI_G (tags ));
3964- FFI_G (tags ) = NULL ;
3965- }
3966- if (FFI_G (symbols )) {
3967- zend_hash_destroy (FFI_G (symbols ));
3968- efree (FFI_G (symbols ));
3969- FFI_G (symbols ) = NULL ;
3970- }
3971- = == == ==
39723933 if (clean_tags && FFI_G (tags )) {
39733934 zend_hash_destroy (FFI_G (tags ));
39743935 efree (FFI_G (tags ));
@@ -3978,7 +3939,6 @@ ZEND_METHOD(FFI, cast) /* {{{ */
39783939 zend_hash_destroy (FFI_G (symbols ));
39793940 efree (FFI_G (symbols ));
39803941 FFI_G (symbols ) = NULL ;
3981- >>>>>>> PHP - 8.2
39823942 }
39833943 return ;
39843944 }
@@ -3988,25 +3948,13 @@ ZEND_METHOD(FFI, cast) /* {{{ */
39883948 is_const = 1 ;
39893949 }
39903950
3991- <<<<<<< HEAD
3992- if (is_static_call ) {
3993- if (FFI_G (tags )) {
3994- zend_ffi_tags_cleanup (& dcl );
3995- }
3996- if (FFI_G (symbols )) {
3997- zend_hash_destroy (FFI_G (symbols ));
3998- efree (FFI_G (symbols ));
3999- FFI_G (symbols ) = NULL ;
4000- }
4001- = == == ==
40023951 if (clean_tags && FFI_G (tags )) {
40033952 zend_ffi_tags_cleanup (& dcl );
40043953 }
40053954 if (clean_symbols && FFI_G (symbols )) {
40063955 zend_hash_destroy (FFI_G (symbols ));
40073956 efree (FFI_G (symbols ));
40083957 FFI_G (symbols ) = NULL ;
4009- >>>>>>> PHP - 8.2
40103958 }
40113959 FFI_G (symbols ) = NULL ;
40123960 FFI_G (tags ) = NULL ;
@@ -4154,35 +4102,12 @@ ZEND_METHOD(FFI, type) /* {{{ */
41544102
41554103 if (zend_ffi_parse_type (ZSTR_VAL (type_def ), ZSTR_LEN (type_def ), & dcl ) == FAILURE ) {
41564104 zend_ffi_type_dtor (dcl .type );
4157- <<<<<<< HEAD
4158- if (is_static_call ) {
4159- if (FFI_G (tags )) {
4160- zend_hash_destroy (FFI_G (tags ));
4161- efree (FFI_G (tags ));
4162- FFI_G (tags ) = NULL ;
4163- }
4164- if (FFI_G (symbols )) {
4165- zend_hash_destroy (FFI_G (symbols ));
4166- efree (FFI_G (symbols ));
4167- FFI_G (symbols ) = NULL ;
4168- }
4169- }
4170- return ;
4171- }
4172-
4173- if (is_static_call ) {
4174- if (FFI_G (tags )) {
4175- zend_ffi_tags_cleanup (& dcl );
4176- }
4177- if (FFI_G (symbols )) {
4178- = == == ==
41794105 if (clean_tags && FFI_G (tags )) {
41804106 zend_hash_destroy (FFI_G (tags ));
41814107 efree (FFI_G (tags ));
41824108 FFI_G (tags ) = NULL ;
41834109 }
41844110 if (clean_symbols && FFI_G (symbols )) {
4185- >>>>>>> PHP - 8.2
41864111 zend_hash_destroy (FFI_G (symbols ));
41874112 efree (FFI_G (symbols ));
41884113 FFI_G (symbols ) = NULL ;
0 commit comments