Lines Matching refs:ce

397 		if (((c->ce->ce_flags & ZEND_ACC_IMMUTABLE) && !(Z_CONSTANT_FLAGS(c->value) & CONST_OWNED))  in zend_persist_class_constant_calc()
398 || c->ce->type == ZEND_INTERNAL_CLASS) { in zend_persist_class_constant_calc()
419 void zend_persist_class_entry_calc(zend_class_entry *ce) in zend_persist_class_entry_calc() argument
423 if (ce->type == ZEND_USER_CLASS) { in zend_persist_class_entry_calc()
425 if (zend_shared_alloc_get_xlat_entry(ce)) { in zend_persist_class_entry_calc()
428 zend_shared_alloc_register_xlat_entry(ce, ce); in zend_persist_class_entry_calc()
432 if (!(ce->ce_flags & ZEND_ACC_CACHED)) { in zend_persist_class_entry_calc()
433 ADD_INTERNED_STRING(ce->name); in zend_persist_class_entry_calc()
434 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc()
435 ADD_INTERNED_STRING(ce->parent_name); in zend_persist_class_entry_calc()
439 zend_hash_persist_calc(&ce->function_table); in zend_persist_class_entry_calc()
440 ZEND_HASH_MAP_FOREACH_BUCKET(&ce->function_table, p) { in zend_persist_class_entry_calc()
445 if (ce->default_properties_table) { in zend_persist_class_entry_calc()
448 ADD_SIZE(sizeof(zval) * ce->default_properties_count); in zend_persist_class_entry_calc()
449 for (i = 0; i < ce->default_properties_count; i++) { in zend_persist_class_entry_calc()
450 zend_persist_zval_calc(&ce->default_properties_table[i]); in zend_persist_class_entry_calc()
453 if (ce->default_static_members_table) { in zend_persist_class_entry_calc()
456 ADD_SIZE(sizeof(zval) * ce->default_static_members_count); in zend_persist_class_entry_calc()
457 for (i = 0; i < ce->default_static_members_count; i++) { in zend_persist_class_entry_calc()
458 if (Z_TYPE(ce->default_static_members_table[i]) != IS_INDIRECT) { in zend_persist_class_entry_calc()
459 zend_persist_zval_calc(&ce->default_static_members_table[i]); in zend_persist_class_entry_calc()
463 zend_hash_persist_calc(&ce->constants_table); in zend_persist_class_entry_calc()
464 ZEND_HASH_MAP_FOREACH_BUCKET(&ce->constants_table, p) { in zend_persist_class_entry_calc()
470 zend_hash_persist_calc(&ce->properties_info); in zend_persist_class_entry_calc()
471 ZEND_HASH_MAP_FOREACH_BUCKET(&ce->properties_info, p) { in zend_persist_class_entry_calc()
475 if (prop->ce == ce) { in zend_persist_class_entry_calc()
480 if (ce->properties_info_table) { in zend_persist_class_entry_calc()
481 ADD_SIZE(sizeof(zend_property_info *) * ce->default_properties_count); in zend_persist_class_entry_calc()
484 if (ce->num_interfaces && (ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc()
485 ADD_SIZE(sizeof(zend_class_entry*) * ce->num_interfaces); in zend_persist_class_entry_calc()
488 if (ce->iterator_funcs_ptr) { in zend_persist_class_entry_calc()
491 if (ce->arrayaccess_funcs_ptr) { in zend_persist_class_entry_calc()
495 if (ce->ce_flags & ZEND_ACC_CACHED) { in zend_persist_class_entry_calc()
499 if (ce->info.user.filename) { in zend_persist_class_entry_calc()
500 ADD_STRING(ce->info.user.filename); in zend_persist_class_entry_calc()
503 if (ZCG(accel_directives).save_comments && ce->doc_comment) { in zend_persist_class_entry_calc()
504 ADD_STRING(ce->doc_comment); in zend_persist_class_entry_calc()
507 if (ce->attributes) { in zend_persist_class_entry_calc()
508 zend_persist_attributes_calc(ce->attributes); in zend_persist_class_entry_calc()
511 if (ce->num_interfaces) { in zend_persist_class_entry_calc()
514 if (!(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc()
515 for (i = 0; i < ce->num_interfaces; i++) { in zend_persist_class_entry_calc()
516 ADD_INTERNED_STRING(ce->interface_names[i].name); in zend_persist_class_entry_calc()
517 ADD_INTERNED_STRING(ce->interface_names[i].lc_name); in zend_persist_class_entry_calc()
519 ADD_SIZE(sizeof(zend_class_name) * ce->num_interfaces); in zend_persist_class_entry_calc()
523 if (ce->num_traits) { in zend_persist_class_entry_calc()
526 for (i = 0; i < ce->num_traits; i++) { in zend_persist_class_entry_calc()
527 ADD_INTERNED_STRING(ce->trait_names[i].name); in zend_persist_class_entry_calc()
528 ADD_INTERNED_STRING(ce->trait_names[i].lc_name); in zend_persist_class_entry_calc()
530 ADD_SIZE(sizeof(zend_class_name) * ce->num_traits); in zend_persist_class_entry_calc()
532 if (ce->trait_aliases) { in zend_persist_class_entry_calc()
534 while (ce->trait_aliases[i]) { in zend_persist_class_entry_calc()
535 if (ce->trait_aliases[i]->trait_method.method_name) { in zend_persist_class_entry_calc()
536 ADD_INTERNED_STRING(ce->trait_aliases[i]->trait_method.method_name); in zend_persist_class_entry_calc()
538 if (ce->trait_aliases[i]->trait_method.class_name) { in zend_persist_class_entry_calc()
539 ADD_INTERNED_STRING(ce->trait_aliases[i]->trait_method.class_name); in zend_persist_class_entry_calc()
542 if (ce->trait_aliases[i]->alias) { in zend_persist_class_entry_calc()
543 ADD_INTERNED_STRING(ce->trait_aliases[i]->alias); in zend_persist_class_entry_calc()
551 if (ce->trait_precedences) { in zend_persist_class_entry_calc()
555 while (ce->trait_precedences[i]) { in zend_persist_class_entry_calc()
556 ADD_INTERNED_STRING(ce->trait_precedences[i]->trait_method.method_name); in zend_persist_class_entry_calc()
557 ADD_INTERNED_STRING(ce->trait_precedences[i]->trait_method.class_name); in zend_persist_class_entry_calc()
559 for (j = 0; j < ce->trait_precedences[i]->num_excludes; j++) { in zend_persist_class_entry_calc()
560 ADD_INTERNED_STRING(ce->trait_precedences[i]->exclude_class_names[j]); in zend_persist_class_entry_calc()
562 …ADD_SIZE(sizeof(zend_trait_precedence) + (ce->trait_precedences[i]->num_excludes - 1) * sizeof(zen… in zend_persist_class_entry_calc()