Lines Matching refs:trait_precedences
484 if (ce->trait_precedences) { in zend_class_copy_ctor()
485 zend_trait_precedence **trait_precedences; in zend_class_copy_ctor() local
488 while (ce->trait_precedences[i]) { in zend_class_copy_ctor()
491 trait_precedences = emalloc(sizeof(zend_trait_precedence*) * (i + 1)); in zend_class_copy_ctor()
493 while (ce->trait_precedences[i]) { in zend_class_copy_ctor()
494 trait_precedences[i] = emalloc(sizeof(zend_trait_precedence)); in zend_class_copy_ctor()
495 memcpy(trait_precedences[i], ce->trait_precedences[i], sizeof(zend_trait_precedence)); in zend_class_copy_ctor()
496 trait_precedences[i]->trait_method = emalloc(sizeof(zend_trait_method_reference)); in zend_class_copy_ctor()
497 …memcpy(trait_precedences[i]->trait_method, ce->trait_precedences[i]->trait_method, sizeof(zend_tra… in zend_class_copy_ctor()
499 if (trait_precedences[i]->exclude_from_classes) { in zend_class_copy_ctor()
503 while (trait_precedences[i]->exclude_from_classes[j].class_name) { in zend_class_copy_ctor()
508 while (trait_precedences[i]->exclude_from_classes[j].class_name) { in zend_class_copy_ctor()
510 trait_precedences[i]->exclude_from_classes[j].class_name; in zend_class_copy_ctor()
514 trait_precedences[i]->exclude_from_classes = (void*)exclude_from_classes; in zend_class_copy_ctor()
518 trait_precedences[i] = NULL; in zend_class_copy_ctor()
519 ce->trait_precedences = trait_precedences; in zend_class_copy_ctor()