Lines Matching refs:constant
2735 zend_class_constant *constant; in zend_do_traits_constant_binding() local
2741 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&traits[i]->constants_table, constant_name, constant) { in zend_do_traits_constant_binding()
2742 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding()
2746 memcpy(ct, constant, sizeof(zend_class_constant)); in zend_do_traits_constant_binding()
2747 constant = ct; in zend_do_traits_constant_binding()
2749 if (Z_TYPE(constant->value) == IS_CONSTANT_AST) { in zend_do_traits_constant_binding()
2758 constant->ce = ce; in zend_do_traits_constant_binding()
2760 Z_TRY_ADDREF(constant->value); in zend_do_traits_constant_binding()
2761 constant->doc_comment = constant->doc_comment ? zend_string_copy(constant->doc_comment) : NULL; in zend_do_traits_constant_binding()
2762 if (constant->attributes && (!(GC_FLAGS(constant->attributes) & IS_ARRAY_IMMUTABLE))) { in zend_do_traits_constant_binding()
2763 GC_ADDREF(constant->attributes); in zend_do_traits_constant_binding()
2766 zend_hash_update_ptr(&ce->constants_table, constant_name, constant); in zend_do_traits_constant_binding()