trait            3938 Zend/zend_compile.c ZEND_API void zend_do_implement_trait(zend_class_entry *ce, zend_class_entry *trait TSRMLS_DC) /* {{{ */
trait            3948 Zend/zend_compile.c 		} else if (ce->traits[i] == trait) {
trait            3962 Zend/zend_compile.c 		ce->traits[ce->num_traits++] = trait;
trait            4198 Zend/zend_compile.c static void zend_check_trait_usage(zend_class_entry *ce, zend_class_entry *trait TSRMLS_DC) /* {{{ */
trait            4202 Zend/zend_compile.c 	if ((trait->ce_flags & ZEND_ACC_TRAIT) != ZEND_ACC_TRAIT) {
trait            4203 Zend/zend_compile.c 		zend_error_noreturn(E_COMPILE_ERROR, "Class %s is not a trait, Only traits may be used in 'as' and 'insteadof' statements", trait->name);
trait            4207 Zend/zend_compile.c 		if (ce->traits[i] == trait) {
trait            4211 Zend/zend_compile.c 	zend_error_noreturn(E_COMPILE_ERROR, "Required Trait %s wasn't added to %s", trait->name, ce->name);
trait            4317 Zend/zend_compile.c static void zend_traits_compile_exclude_table(HashTable* exclude_table, zend_trait_precedence **precedences, zend_class_entry *trait) /* {{{ */
trait            4328 Zend/zend_compile.c 				if (precedences[i]->exclude_from_classes[j] == trait) {
trait            4334 Zend/zend_compile.c 						zend_error_noreturn(E_COMPILE_ERROR, "Failed to evaluate a trait precedence (%s). Method of trait %s was defined to be excluded multiple times", precedences[i]->trait_method->method_name, trait->name);
trait             555 Zend/zend_compile.h ZEND_API void zend_do_implement_trait(zend_class_entry *ce, zend_class_entry *trait TSRMLS_DC);
trait            5175 Zend/zend_vm_def.h 	zend_class_entry *trait;
trait            5179 Zend/zend_vm_def.h 		trait = CACHED_PTR(opline->op2.literal->cache_slot);
trait            5181 Zend/zend_vm_def.h 		trait = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv),
trait            5185 Zend/zend_vm_def.h 		if (UNEXPECTED(trait == NULL)) {
trait            5189 Zend/zend_vm_def.h 		if (!((trait->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT)) {
trait            5190 Zend/zend_vm_def.h 			zend_error_noreturn(E_ERROR, "%s cannot use %s - it is not a trait", ce->name, trait->name);
trait            5192 Zend/zend_vm_def.h 		CACHE_PTR(opline->op2.literal->cache_slot, trait);
trait            5195 Zend/zend_vm_def.h 	zend_do_implement_trait(ce, trait TSRMLS_CC);
trait            1131 Zend/zend_vm_execute.h 	zend_class_entry *trait;
trait            1135 Zend/zend_vm_execute.h 		trait = CACHED_PTR(opline->op2.literal->cache_slot);
trait            1137 Zend/zend_vm_execute.h 		trait = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv),
trait            1141 Zend/zend_vm_execute.h 		if (UNEXPECTED(trait == NULL)) {
trait            1145 Zend/zend_vm_execute.h 		if (!((trait->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT)) {
trait            1146 Zend/zend_vm_execute.h 			zend_error_noreturn(E_ERROR, "%s cannot use %s - it is not a trait", ce->name, trait->name);
trait            1148 Zend/zend_vm_execute.h 		CACHE_PTR(opline->op2.literal->cache_slot, trait);
trait            1151 Zend/zend_vm_execute.h 	zend_do_implement_trait(ce, trait TSRMLS_CC);
trait            4509 ext/reflection/php_reflection.c 		zval *trait;
trait            4510 ext/reflection/php_reflection.c 		ALLOC_ZVAL(trait);
trait            4511 ext/reflection/php_reflection.c 		zend_reflection_class_factory(ce->traits[i], trait TSRMLS_CC);
trait            4512 ext/reflection/php_reflection.c 		add_assoc_zval_ex(return_value, ce->traits[i]->name, ce->traits[i]->name_length + 1, trait);