@@ -4410,8 +4410,7 @@ ZEND_API const char *zend_get_module_version(const char *module_name) /* {{{ */
44104410/* }}} */
44114411
44124412static zend_always_inline bool is_persistent_class (const zend_class_entry * ce ) {
4413- return (ce -> type & ZEND_INTERNAL_CLASS )
4414- && ce -> info .internal .module -> type == MODULE_PERSISTENT ;
4413+ return ce -> type == ZEND_INTERNAL_CLASS && ce -> info .internal .module -> type == MODULE_PERSISTENT ;
44154414}
44164415
44174416ZEND_API zend_property_info * zend_declare_typed_property (zend_class_entry * ce , zend_string * name , zval * property , int access_type , zend_string * doc_comment , zend_type type ) /* {{{ */
@@ -4534,7 +4533,7 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
45344533 Z_PROP_FLAG_P (property_default_ptr ) = Z_ISUNDEF_P (property ) ? IS_PROP_UNINIT : 0 ;
45354534 }
45364535skip_property_storage :
4537- if (ce -> type & ZEND_INTERNAL_CLASS ) {
4536+ if (ce -> type == ZEND_INTERNAL_CLASS ) {
45384537 /* Must be interned to avoid ZTS data races */
45394538 if (is_persistent_class (ce )) {
45404539 name = zend_new_interned_string (zend_string_copy (name ));
@@ -4753,7 +4752,7 @@ ZEND_API void zend_declare_property_string(zend_class_entry *ce, const char *nam
47534752{
47544753 zval property ;
47554754
4756- ZVAL_NEW_STR (& property , zend_string_init (value , strlen (value ), ce -> type & ZEND_INTERNAL_CLASS ));
4755+ ZVAL_NEW_STR (& property , zend_string_init (value , strlen (value ), ce -> type == ZEND_INTERNAL_CLASS ));
47574756 zend_declare_property (ce , name , name_length , & property , access_type );
47584757}
47594758/* }}} */
@@ -4762,7 +4761,7 @@ ZEND_API void zend_declare_property_stringl(zend_class_entry *ce, const char *na
47624761{
47634762 zval property ;
47644763
4765- ZVAL_NEW_STR (& property , zend_string_init (value , value_len , ce -> type & ZEND_INTERNAL_CLASS ));
4764+ ZVAL_NEW_STR (& property , zend_string_init (value , value_len , ce -> type == ZEND_INTERNAL_CLASS ));
47664765 zend_declare_property (ce , name , name_length , & property , access_type );
47674766}
47684767/* }}} */
@@ -4876,7 +4875,7 @@ ZEND_API void zend_declare_class_constant_stringl(zend_class_entry *ce, const ch
48764875{
48774876 zval constant ;
48784877
4879- ZVAL_NEW_STR (& constant , zend_string_init (value , value_length , ce -> type & ZEND_INTERNAL_CLASS ));
4878+ ZVAL_NEW_STR (& constant , zend_string_init (value , value_length , ce -> type == ZEND_INTERNAL_CLASS ));
48804879 zend_declare_class_constant (ce , name , name_length , & constant );
48814880}
48824881/* }}} */
0 commit comments