File tree 1 file changed +3
-15
lines changed
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -770,41 +770,29 @@ static inline void pmmpthread_prepare_constants(const pmmpthread_ident_t* source
770
770
zend_string * name ;
771
771
772
772
ZEND_HASH_FOREACH_STR_KEY_PTR (PMMPTHREAD_EG (source -> ls , zend_constants ), name , zconstant ) {
773
- #if PHP_VERSION_ID < 80300
774
773
if (zconstant -> name ) {
775
- #endif
776
774
if (Z_TYPE (zconstant -> value ) == IS_RESOURCE ){
777
775
//we can't copy these
778
776
continue ;
779
777
} else {
780
778
zend_constant constant ;
781
779
782
780
if (!pmmpthread_constant_exists (name )) {
783
- zend_string * name_copy = pmmpthread_copy_string (name );
784
- #if PHP_VERSION_ID < 80300
785
- constant .name = name_copy ;
786
- #endif
781
+ constant .name = pmmpthread_copy_string (name );
787
782
788
783
if (pmmpthread_copy_zval (source , & constant .value , & zconstant -> value ) != SUCCESS ) {
789
784
zend_error_noreturn (
790
785
E_CORE_ERROR ,
791
786
"pmmpthread encountered an unknown non-copyable constant %s of type %s" ,
792
- ZSTR_VAL (name_copy ),
787
+ ZSTR_VAL (zconstant -> name ),
793
788
zend_zval_type_name (& zconstant -> value )
794
789
);
795
790
}
796
791
ZEND_CONSTANT_SET_FLAGS (& constant , ZEND_CONSTANT_FLAGS (zconstant ), ZEND_CONSTANT_MODULE_NUMBER (zconstant ));
797
- zend_register_constant (
798
- #if PHP_VERSION_ID >= 80300
799
- name_copy ,
800
- #endif
801
- & constant
802
- );
792
+ zend_register_constant (& constant );
803
793
}
804
794
}
805
- #if PHP_VERSION_ID < 80300
806
795
}
807
- #endif
808
796
} ZEND_HASH_FOREACH_END ();
809
797
} /* }}} */
810
798
You can’t perform that action at this time.
0 commit comments