Lines Matching refs:pce

24 void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_flags)  in spl_add_class_name()  argument
26 …if (!allow || (allow > 0 && (pce->ce_flags & ce_flags)) || (allow < 0 && !(pce->ce_flags & ce_flag… in spl_add_class_name()
29 if ((tmp = zend_hash_find(Z_ARRVAL_P(list), pce->name)) == NULL) { in spl_add_class_name()
31 ZVAL_STR_COPY(&t, pce->name); in spl_add_class_name()
32 zend_hash_add(Z_ARRVAL_P(list), pce->name, &t); in spl_add_class_name()
39 void spl_add_interfaces(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_interfaces() argument
41 if (pce->num_interfaces) { in spl_add_interfaces()
42 ZEND_ASSERT(pce->ce_flags & ZEND_ACC_LINKED); in spl_add_interfaces()
43 for (uint32_t num_interfaces = 0; num_interfaces < pce->num_interfaces; num_interfaces++) { in spl_add_interfaces()
44 spl_add_class_name(list, pce->interfaces[num_interfaces], allow, ce_flags); in spl_add_interfaces()
51 void spl_add_traits(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_traits() argument
55 for (uint32_t num_traits = 0; num_traits < pce->num_traits; num_traits++) { in spl_add_traits()
56 trait = zend_fetch_class_by_name(pce->trait_names[num_traits].name, in spl_add_traits()
57 pce->trait_names[num_traits].lc_name, ZEND_FETCH_CLASS_TRAIT); in spl_add_traits()
66 void spl_add_classes(zend_class_entry *pce, zval *list, bool sub, int allow, int ce_flags) in spl_add_classes() argument
68 ZEND_ASSERT(pce); in spl_add_classes()
69 spl_add_class_name(list, pce, allow, ce_flags); in spl_add_classes()
71 spl_add_interfaces(list, pce, allow, ce_flags); in spl_add_classes()
72 while (pce->parent) { in spl_add_classes()
73 pce = pce->parent; in spl_add_classes()
74 spl_add_classes(pce, list, sub, allow, ce_flags); in spl_add_classes()