Lines Matching refs:key
225 char *key; in ZEND_INI_MH() local
227 key = zend_shared_alloc(ZCG(include_path_len) + 2); in ZEND_INI_MH()
228 if (key) { in ZEND_INI_MH()
229 memcpy(key, ZCG(include_path), ZCG(include_path_len) + 1); in ZEND_INI_MH()
230 key[ZCG(include_path_len) + 1] = 'A' + ZCSG(include_paths).num_entries; in ZEND_INI_MH()
231 ZCG(include_path_key) = key + ZCG(include_path_len) + 1; in ZEND_INI_MH()
232 …zend_accel_hash_update(&ZCSG(include_paths), key, ZCG(include_path_len) + 1, 0, ZCG(include_path_k… in ZEND_INI_MH()
997 char *key; in accel_make_persistent_key_ex() local
999 key = zend_shared_alloc(ZCG(include_path_len) + 2); in accel_make_persistent_key_ex()
1000 if (key) { in accel_make_persistent_key_ex()
1001 memcpy(key, ZCG(include_path), ZCG(include_path_len) + 1); in accel_make_persistent_key_ex()
1002 key[ZCG(include_path_len) + 1] = 'A' + ZCSG(include_paths).num_entries; in accel_make_persistent_key_ex()
1003 ZCG(include_path_key) = key + ZCG(include_path_len) + 1; in accel_make_persistent_key_ex()
1004 …zend_accel_hash_update(&ZCSG(include_paths), key, ZCG(include_path_len) + 1, 0, ZCG(include_path_k… in accel_make_persistent_key_ex()
1040 if ((size_t)key_length >= sizeof(ZCG(key))) { in accel_make_persistent_key_ex()
1044 memcpy(ZCG(key), cwd, cwd_len); in accel_make_persistent_key_ex()
1045 ZCG(key)[cwd_len] = ':'; in accel_make_persistent_key_ex() local
1047 memcpy(ZCG(key) + cwd_len + 1, file_handle->filename, path_length); in accel_make_persistent_key_ex()
1049 ZCG(key)[cwd_len + 1 + path_length] = ':'; in accel_make_persistent_key_ex() local
1054 memcpy(ZCG(key) + cur_len, parent_script, parent_script_len); in accel_make_persistent_key_ex()
1056 ZCG(key)[cur_len] = ':'; in accel_make_persistent_key_ex() local
1059 memcpy(ZCG(key) + cur_len, include_path, include_path_len); in accel_make_persistent_key_ex()
1060 ZCG(key)[key_length] = '\0'; in accel_make_persistent_key_ex() local
1064 if ((size_t)key_length >= sizeof(ZCG(key))) { in accel_make_persistent_key_ex()
1068 memcpy(ZCG(key), file_handle->filename, key_length + 1); in accel_make_persistent_key_ex()
1072 return ZCG(key); in accel_make_persistent_key_ex()
1134 static void zend_accel_add_key(char *key, unsigned int key_length, zend_accel_hash_entry *bucket TS… in zend_accel_add_key() argument
1136 if (!zend_accel_hash_find(&ZCSG(hash), key, key_length + 1)) { in zend_accel_add_key()
1144 memcpy(new_key, key, key_length + 1); in zend_accel_add_key()
1155 …ript_in_shared_memory(zend_persistent_script *new_persistent_script, char *key, unsigned int key_l… in cache_script_in_shared_memory() argument
1195 zend_accel_add_key(key, key_length, bucket TSRMLS_CC); in cache_script_in_shared_memory()
1203 memory_used = zend_accel_script_persist_calc(new_persistent_script, key, key_length TSRMLS_CC); in cache_script_in_shared_memory()
1218 …new_persistent_script = zend_accel_script_persist(new_persistent_script, &key, key_length TSRMLS_C… in cache_script_in_shared_memory()
1239 memcmp(key, "phar://", sizeof("phar://") - 1) != 0 && in cache_script_in_shared_memory()
1241 memcmp(new_persistent_script->full_path, key, key_length) != 0)) { in cache_script_in_shared_memory()
1243 if (zend_accel_hash_update(&ZCSG(hash), key, key_length + 1, 1, bucket)) { in cache_script_in_shared_memory()
1244 zend_accel_error(ACCEL_LOG_INFO, "Added key '%s'", key); in cache_script_in_shared_memory()
1312 …ipt *compile_and_cache_file(zend_file_handle *file_handle, int type, char *key, unsigned int key_l… in compile_and_cache_file() argument
1329 if (key == ZCG(key)) { in compile_and_cache_file()
1481 …return cache_script_in_shared_memory(new_persistent_script, key, key_length, from_shared_memory TS… in compile_and_cache_file()
1488 char *key = NULL; local
1535 key = ZCG(key);
1539 if ((key = accel_make_persistent_key(file_handle, &key_length TSRMLS_CC)) == NULL) {
1542 persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1);
1579 zend_accel_add_key(key, key_length, bucket TSRMLS_CC);
1680 …persistent_script = compile_and_cache_file(file_handle, type, key, key_length, &op_array, &from_sh…
1892 char *key = NULL; local
1915 memcpy(ZCG(key), persistent_script->full_path, persistent_script->full_path_len + 1);
1923 key = accel_make_persistent_key_ex(handle, filename_len, &key_length TSRMLS_CC);
1925 key &&
1926 (persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1)) != NULL &&
1947 if (key && !ZCG(accel_directives).revalidate_path) {
1951 zend_accel_add_key(key, key_length, bucket TSRMLS_CC);
2023 memcpy(ZCG(key), persistent_script->full_path, persistent_script->full_path_len + 1);
2062 char *key = NULL; local
2074 memcpy(ZCG(key), persistent_script->full_path, persistent_script->full_path_len + 1);
2086 key = accel_make_persistent_key_ex(&handle, filename_len, &key_length TSRMLS_CC);
2088 key &&
2089 (persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1)) != NULL &&
2107 if (key && !ZCG(accel_directives).revalidate_path) {
2111 zend_accel_add_key(key, key_length, bucket TSRMLS_CC);
2115 ZCG(cache_opline) = (EG(opline_ptr) && key) ? *EG(opline_ptr): NULL;
2116 ZCG(cache_persistent_script) = key ? persistent_script : NULL;
2216 …ZCSG(include_paths).hash_table[zend_inline_hash_func(ZCSG(include_paths).hash_entries[0].key, ZCSG…
2718 char *key; local
2721 key = zend_shared_alloc(ZCG(include_path_len) + 2);
2722 if (key) {
2723 memcpy(key, ZCG(include_path), ZCG(include_path_len) + 1);
2724 key[ZCG(include_path_len) + 1] = 'A' + ZCSG(include_paths).num_entries;
2725 ZCG(include_path_key) = key + ZCG(include_path_len) + 1;
2726 …zend_accel_hash_update(&ZCSG(include_paths), key, ZCG(include_path_len) + 1, 0, ZCG(include_path_k…