Lines Matching refs:key_length
976 int key_length; in accel_make_persistent_key() local
1091 key_length = path_length + 1; in accel_make_persistent_key()
1092 memcpy(ZCG(key) + key_length, cwd, cwd_len); in accel_make_persistent_key()
1093 key_length += cwd_len; in accel_make_persistent_key()
1096 ZCG(key)[key_length] = ':'; in accel_make_persistent_key()
1097 key_length += 1; in accel_make_persistent_key()
1098 memcpy(ZCG(key) + key_length, include_path, include_path_len); in accel_make_persistent_key()
1099 key_length += include_path_len; in accel_make_persistent_key()
1112 if (UNEXPECTED((size_t)(key_length + parent_script_len + 1) >= sizeof(ZCG(key)))) { in accel_make_persistent_key()
1115 ZCG(key)[key_length] = ':'; in accel_make_persistent_key()
1116 key_length += 1; in accel_make_persistent_key()
1117 memcpy(ZCG(key) + key_length, ZSTR_VAL(parent_script), parent_script_len); in accel_make_persistent_key()
1118 key_length += parent_script_len; in accel_make_persistent_key()
1120 ZCG(key)[key_length] = '\0'; in accel_make_persistent_key()
1121 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key()
1186 static void zend_accel_add_key(char *key, unsigned int key_length, zend_accel_hash_entry *bucket) in zend_accel_add_key() argument
1188 if (!zend_accel_hash_str_find(&ZCSG(hash), key, key_length)) { in zend_accel_add_key()
1194 char *new_key = zend_shared_alloc(key_length + 1); in zend_accel_add_key()
1196 memcpy(new_key, key, key_length + 1); in zend_accel_add_key()
1197 if (zend_accel_hash_update(&ZCSG(hash), new_key, key_length, 1, bucket)) { in zend_accel_add_key()
1265 …zend_persistent_script *new_persistent_script, char *key, unsigned int key_length, int *from_share… in cache_script_in_shared_memory() argument
1301 zend_accel_add_key(key, key_length, bucket); in cache_script_in_shared_memory()
1312 memory_used = zend_accel_script_persist_calc(new_persistent_script, key, key_length, 1); in cache_script_in_shared_memory()
1330 new_persistent_script = zend_accel_script_persist(new_persistent_script, &key, key_length); in cache_script_in_shared_memory()
1359 (ZSTR_LEN(new_persistent_script->full_path) != key_length || in cache_script_in_shared_memory()
1360 memcmp(ZSTR_VAL(new_persistent_script->full_path), key, key_length) != 0)) { in cache_script_in_shared_memory()
1362 if (zend_accel_hash_update(&ZCSG(hash), key, key_length, 1, bucket)) { in cache_script_in_shared_memory()
1449 …_file(zend_file_handle *file_handle, int type, char *key, unsigned int key_length, zend_op_array *… in opcache_compile_file() argument
1465 key_length = ZCG(key_len); in opcache_compile_file()
1674 int key_length; in persistent_compile_file() local
1709 key_length = ZCG(key_len); in persistent_compile_file()
1715 …key = accel_make_persistent_key(file_handle->filename, strlen(file_handle->filename), &key_length); in persistent_compile_file()
1719 persistent_script = zend_accel_hash_str_find(&ZCSG(hash), key, key_length); in persistent_compile_file()
1749 zend_accel_add_key(key, key_length, bucket); in persistent_compile_file()
1867 persistent_script = opcache_compile_file(file_handle, type, key, key ? key_length : 0, &op_array); in persistent_compile_file()
1869 …persistent_script = cache_script_in_shared_memory(persistent_script, key, key ? key_length : 0, &f… in persistent_compile_file()
1984 int key_length; in persistent_zend_resolve_path() local
1989 key = accel_make_persistent_key(filename, filename_len, &key_length); in persistent_zend_resolve_path()
1991 zend_accel_hash_entry *bucket = zend_accel_hash_str_find_entry(&ZCSG(hash), key, key_length); in persistent_zend_resolve_path()
2020 zend_accel_add_key(key, key_length, bucket); in persistent_zend_resolve_path()