Lines Matching refs:symbols
165 HashTable *symbols; member
172 HashTable *symbols; member
2292 ffi->symbols = NULL; in zend_ffi_new()
2407 if (scope->symbols) { in zend_ffi_scope_hash_dtor()
2408 zend_hash_destroy(scope->symbols); in zend_ffi_scope_hash_dtor()
2409 free(scope->symbols); in zend_ffi_scope_hash_dtor()
2432 if (ffi->symbols) { in zend_ffi_free_obj()
2433 zend_hash_destroy(ffi->symbols); in zend_ffi_free_obj()
2434 efree(ffi->symbols); in zend_ffi_free_obj()
2484 if (ffi->symbols) { in zend_ffi_read_var()
2485 sym = zend_hash_find_ptr(ffi->symbols, var_name); in zend_ffi_read_var()
2527 if (ffi->symbols) { in zend_ffi_write_var()
2528 sym = zend_hash_find_ptr(ffi->symbols, var_name); in zend_ffi_write_var()
2900 if (ffi->symbols) { in zend_ffi_get_func()
2901 sym = zend_hash_find_ptr(ffi->symbols, name); in zend_ffi_get_func()
3054 FFI_G(symbols) = NULL; in ZEND_METHOD()
3062 if (FFI_G(symbols)) { in ZEND_METHOD()
3063 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3064 efree(FFI_G(symbols)); in ZEND_METHOD()
3065 FFI_G(symbols) = NULL; in ZEND_METHOD()
3075 if (FFI_G(symbols)) { in ZEND_METHOD()
3079 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in ZEND_METHOD()
3104 ffi->symbols = FFI_G(symbols); in ZEND_METHOD()
3107 FFI_G(symbols) = NULL; in ZEND_METHOD()
3269 if (FFI_G(symbols)) { in zend_ffi_cleanup_type()
3270 ZEND_HASH_MAP_FOREACH_PTR(FFI_G(symbols), sym) { in zend_ffi_cleanup_type()
3347 FFI_G(symbols) = NULL; in zend_ffi_load()
3412 if (FFI_G(symbols)) { in zend_ffi_load()
3413 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in zend_ffi_load()
3446 if (scope && scope->symbols) { in zend_ffi_load()
3447 zend_ffi_symbol *old_sym = zend_hash_find_ptr(scope->symbols, name); in zend_ffi_load()
3495 scope->symbols = FFI_G(symbols); in zend_ffi_load()
3505 if (FFI_G(symbols)) { in zend_ffi_load()
3506 if (!scope->symbols) { in zend_ffi_load()
3507 scope->symbols = FFI_G(symbols); in zend_ffi_load()
3508 FFI_G(symbols) = NULL; in zend_ffi_load()
3510 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in zend_ffi_load()
3511 if (!zend_hash_add_ptr(scope->symbols, name, sym)) { in zend_ffi_load()
3516 FFI_G(symbols)->pDestructor = NULL; in zend_ffi_load()
3517 zend_hash_destroy(FFI_G(symbols)); in zend_ffi_load()
3542 ffi->symbols = scope->symbols; in zend_ffi_load()
3548 ffi->symbols = FFI_G(symbols); in zend_ffi_load()
3553 FFI_G(symbols) = NULL; in zend_ffi_load()
3561 if (FFI_G(symbols)) { in zend_ffi_load()
3562 zend_hash_destroy(FFI_G(symbols)); in zend_ffi_load()
3563 pefree(FFI_G(symbols), preload); in zend_ffi_load()
3564 FFI_G(symbols) = NULL; in zend_ffi_load()
3621 ffi->symbols = scope->symbols; in ZEND_METHOD()
3687 if (FFI_G(symbols)) { in zend_ffi_validate_incomplete_type()
3691 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), key, sym) { in zend_ffi_validate_incomplete_type()
3839 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
3842 FFI_G(symbols) = NULL; in ZEND_METHOD()
3845 bool clean_symbols = FFI_G(symbols) == NULL; in ZEND_METHOD()
3857 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
3858 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3859 efree(FFI_G(symbols)); in ZEND_METHOD()
3860 FFI_G(symbols) = NULL; in ZEND_METHOD()
3873 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
3874 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3875 efree(FFI_G(symbols)); in ZEND_METHOD()
3876 FFI_G(symbols) = NULL; in ZEND_METHOD()
3878 FFI_G(symbols) = NULL; in ZEND_METHOD()
3989 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
3992 FFI_G(symbols) = NULL; in ZEND_METHOD()
3995 bool clean_symbols = FFI_G(symbols) == NULL; in ZEND_METHOD()
4007 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4008 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4009 efree(FFI_G(symbols)); in ZEND_METHOD()
4010 FFI_G(symbols) = NULL; in ZEND_METHOD()
4023 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4024 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4025 efree(FFI_G(symbols)); in ZEND_METHOD()
4026 FFI_G(symbols) = NULL; in ZEND_METHOD()
4028 FFI_G(symbols) = NULL; in ZEND_METHOD()
4161 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
4164 FFI_G(symbols) = NULL; in ZEND_METHOD()
4167 bool clean_symbols = FFI_G(symbols) == NULL; in ZEND_METHOD()
4179 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4180 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4181 efree(FFI_G(symbols)); in ZEND_METHOD()
4182 FFI_G(symbols) = NULL; in ZEND_METHOD()
4190 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4191 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4192 efree(FFI_G(symbols)); in ZEND_METHOD()
4193 FFI_G(symbols) = NULL; in ZEND_METHOD()
4195 FFI_G(symbols) = NULL; in ZEND_METHOD()
5867 if (FFI_G(symbols)) {
5868 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5886 if (FFI_G(symbols)) {
5887 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5914 } else if (FFI_G(symbols)) {
5915 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
6058 if (!FFI_G(symbols)) {
6059 FFI_G(symbols) = pemalloc(sizeof(HashTable), FFI_G(persistent));
6060 …zend_hash_init(FFI_G(symbols), 0, NULL, FFI_G(persistent) ? zend_ffi_symbol_hash_persistent_dtor :…
6062 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
6070 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);
6634 if (!FFI_G(symbols)) {
6635 FFI_G(symbols) = pemalloc(sizeof(HashTable), FFI_G(persistent));
6636 …zend_hash_init(FFI_G(symbols), 0, NULL, FFI_G(persistent) ? zend_ffi_symbol_hash_persistent_dtor :…
6639 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
6693 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);
6709 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);