Lines Matching refs:backed_enum_table
204 HashTable *backed_enum_table = emalloc(sizeof(HashTable)); in zend_enum_build_backed_enum_table() local
205 zend_hash_init(backed_enum_table, 0, NULL, ZVAL_PTR_DTOR, 0); in zend_enum_build_backed_enum_table()
206 zend_class_set_backed_enum_table(ce, backed_enum_table); in zend_enum_build_backed_enum_table()
231 const zval *existing_case_name = zend_hash_index_find(backed_enum_table, long_key); in zend_enum_build_backed_enum_table()
240 zend_hash_index_add_new(backed_enum_table, long_key, case_name); in zend_enum_build_backed_enum_table()
244 const zval *existing_case_name = zend_hash_find(backed_enum_table, string_key); in zend_enum_build_backed_enum_table()
253 zend_hash_add_new(backed_enum_table, string_key, case_name); in zend_enum_build_backed_enum_table()
260 zend_hash_release(backed_enum_table); in zend_enum_build_backed_enum_table()
297 const HashTable *backed_enum_table = CE_BACKED_ENUM_TABLE(ce); in zend_enum_get_case_by_value() local
298 if (!backed_enum_table) { in zend_enum_get_case_by_value()
304 case_name_zv = zend_hash_index_find(backed_enum_table, long_key); in zend_enum_get_case_by_value()
308 case_name_zv = zend_hash_find(backed_enum_table, string_key); in zend_enum_get_case_by_value()
512 HashTable *backed_enum_table = pemalloc(sizeof(HashTable), 1); in zend_register_internal_enum() local
513 zend_hash_init(backed_enum_table, 0, NULL, ZVAL_PTR_DTOR, 1); in zend_register_internal_enum()
514 zend_class_set_backed_enum_table(ce, backed_enum_table); in zend_register_internal_enum()
582 HashTable *backed_enum_table = CE_BACKED_ENUM_TABLE(ce); in zend_enum_add_case() local
587 zend_hash_index_add_new(backed_enum_table, Z_LVAL_P(value), &case_name_zv); in zend_enum_add_case()
589 zend_hash_add_new(backed_enum_table, Z_STR_P(value), &case_name_zv); in zend_enum_add_case()