Lines Matching refs:trait_aliases
464 if (ce->trait_aliases) { in zend_class_copy_ctor()
465 zend_trait_alias **trait_aliases; in zend_class_copy_ctor() local
468 while (ce->trait_aliases[i]) { in zend_class_copy_ctor()
471 trait_aliases = emalloc(sizeof(zend_trait_alias*) * (i + 1)); in zend_class_copy_ctor()
473 while (ce->trait_aliases[i]) { in zend_class_copy_ctor()
474 trait_aliases[i] = emalloc(sizeof(zend_trait_alias)); in zend_class_copy_ctor()
475 memcpy(trait_aliases[i], ce->trait_aliases[i], sizeof(zend_trait_alias)); in zend_class_copy_ctor()
476 trait_aliases[i]->trait_method = emalloc(sizeof(zend_trait_method_reference)); in zend_class_copy_ctor()
477 …memcpy(trait_aliases[i]->trait_method, ce->trait_aliases[i]->trait_method, sizeof(zend_trait_metho… in zend_class_copy_ctor()
480 trait_aliases[i] = NULL; in zend_class_copy_ctor()
481 ce->trait_aliases = trait_aliases; in zend_class_copy_ctor()