Lines Matching refs:symbols
165 HashTable *symbols; member
172 HashTable *symbols; member
2291 ffi->symbols = NULL; in zend_ffi_new()
2406 if (scope->symbols) { in zend_ffi_scope_hash_dtor()
2407 zend_hash_destroy(scope->symbols); in zend_ffi_scope_hash_dtor()
2408 free(scope->symbols); in zend_ffi_scope_hash_dtor()
2431 if (ffi->symbols) { in zend_ffi_free_obj()
2432 zend_hash_destroy(ffi->symbols); in zend_ffi_free_obj()
2433 efree(ffi->symbols); in zend_ffi_free_obj()
2483 if (ffi->symbols) { in zend_ffi_read_var()
2484 sym = zend_hash_find_ptr(ffi->symbols, var_name); in zend_ffi_read_var()
2526 if (ffi->symbols) { in zend_ffi_write_var()
2527 sym = zend_hash_find_ptr(ffi->symbols, var_name); in zend_ffi_write_var()
2899 if (ffi->symbols) { in zend_ffi_get_func()
2900 sym = zend_hash_find_ptr(ffi->symbols, name); in zend_ffi_get_func()
3053 FFI_G(symbols) = NULL; in ZEND_METHOD()
3061 if (FFI_G(symbols)) { in ZEND_METHOD()
3062 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3063 efree(FFI_G(symbols)); in ZEND_METHOD()
3064 FFI_G(symbols) = NULL; in ZEND_METHOD()
3074 if (FFI_G(symbols)) { in ZEND_METHOD()
3078 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in ZEND_METHOD()
3103 ffi->symbols = FFI_G(symbols); in ZEND_METHOD()
3106 FFI_G(symbols) = NULL; in ZEND_METHOD()
3268 if (FFI_G(symbols)) { in zend_ffi_cleanup_type()
3269 ZEND_HASH_MAP_FOREACH_PTR(FFI_G(symbols), sym) { in zend_ffi_cleanup_type()
3346 FFI_G(symbols) = NULL; in zend_ffi_load()
3411 if (FFI_G(symbols)) { in zend_ffi_load()
3412 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in zend_ffi_load()
3445 if (scope && scope->symbols) { in zend_ffi_load()
3446 zend_ffi_symbol *old_sym = zend_hash_find_ptr(scope->symbols, name); in zend_ffi_load()
3494 scope->symbols = FFI_G(symbols); in zend_ffi_load()
3504 if (FFI_G(symbols)) { in zend_ffi_load()
3505 if (!scope->symbols) { in zend_ffi_load()
3506 scope->symbols = FFI_G(symbols); in zend_ffi_load()
3507 FFI_G(symbols) = NULL; in zend_ffi_load()
3509 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in zend_ffi_load()
3510 if (!zend_hash_add_ptr(scope->symbols, name, sym)) { in zend_ffi_load()
3515 FFI_G(symbols)->pDestructor = NULL; in zend_ffi_load()
3516 zend_hash_destroy(FFI_G(symbols)); in zend_ffi_load()
3541 ffi->symbols = scope->symbols; in zend_ffi_load()
3547 ffi->symbols = FFI_G(symbols); in zend_ffi_load()
3552 FFI_G(symbols) = NULL; in zend_ffi_load()
3560 if (FFI_G(symbols)) { in zend_ffi_load()
3561 zend_hash_destroy(FFI_G(symbols)); in zend_ffi_load()
3562 pefree(FFI_G(symbols), preload); in zend_ffi_load()
3563 FFI_G(symbols) = NULL; in zend_ffi_load()
3620 ffi->symbols = scope->symbols; in ZEND_METHOD()
3686 if (FFI_G(symbols)) { in zend_ffi_validate_incomplete_type()
3690 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(FFI_G(symbols), key, sym) { in zend_ffi_validate_incomplete_type()
3838 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
3841 FFI_G(symbols) = NULL; in ZEND_METHOD()
3844 bool clean_symbols = FFI_G(symbols) == NULL; in ZEND_METHOD()
3856 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
3857 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3858 efree(FFI_G(symbols)); in ZEND_METHOD()
3859 FFI_G(symbols) = NULL; in ZEND_METHOD()
3872 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
3873 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3874 efree(FFI_G(symbols)); in ZEND_METHOD()
3875 FFI_G(symbols) = NULL; in ZEND_METHOD()
3877 FFI_G(symbols) = NULL; in ZEND_METHOD()
3988 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
3991 FFI_G(symbols) = NULL; in ZEND_METHOD()
3994 bool clean_symbols = FFI_G(symbols) == NULL; in ZEND_METHOD()
4006 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4007 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4008 efree(FFI_G(symbols)); in ZEND_METHOD()
4009 FFI_G(symbols) = NULL; in ZEND_METHOD()
4022 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4023 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4024 efree(FFI_G(symbols)); in ZEND_METHOD()
4025 FFI_G(symbols) = NULL; in ZEND_METHOD()
4027 FFI_G(symbols) = NULL; in ZEND_METHOD()
4160 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
4163 FFI_G(symbols) = NULL; in ZEND_METHOD()
4166 bool clean_symbols = FFI_G(symbols) == NULL; in ZEND_METHOD()
4178 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4179 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4180 efree(FFI_G(symbols)); in ZEND_METHOD()
4181 FFI_G(symbols) = NULL; in ZEND_METHOD()
4189 if (clean_symbols && FFI_G(symbols)) { in ZEND_METHOD()
4190 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4191 efree(FFI_G(symbols)); in ZEND_METHOD()
4192 FFI_G(symbols) = NULL; in ZEND_METHOD()
4194 FFI_G(symbols) = NULL; in ZEND_METHOD()
5871 if (FFI_G(symbols)) {
5872 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5890 if (FFI_G(symbols)) {
5891 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5918 } else if (FFI_G(symbols)) {
5919 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
6062 if (!FFI_G(symbols)) {
6063 FFI_G(symbols) = pemalloc(sizeof(HashTable), FFI_G(persistent));
6064 …zend_hash_init(FFI_G(symbols), 0, NULL, FFI_G(persistent) ? zend_ffi_symbol_hash_persistent_dtor :…
6066 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
6074 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);
6638 if (!FFI_G(symbols)) {
6639 FFI_G(symbols) = pemalloc(sizeof(HashTable), FFI_G(persistent));
6640 …zend_hash_init(FFI_G(symbols), 0, NULL, FFI_G(persistent) ? zend_ffi_symbol_hash_persistent_dtor :…
6643 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
6697 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);
6713 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);