Searched refs:ZCG (Results 1 – 12 of 12) sorted by relevance
/PHP-7.1/ext/opcache/ |
H A D | ZendAccelerator.c | 173 if (ZCG(cwd)) { in ZEND_FUNCTION() 178 if (ZCG(cwd)) { in ZEND_FUNCTION() 180 ZCG(cwd) = NULL; in ZEND_FUNCTION() 189 if (ZCG(cwd)) { in accel_getcwd() 190 return ZCG(cwd); in accel_getcwd() 200 return ZCG(cwd); in accel_getcwd() 314 ZCG(counted) = 0; in accel_deactivate_sub() 1240 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in store_script_in_file_cache() 1344 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory() 1348 if (!ZCG(mem)) { in cache_script_in_shared_memory() [all …]
|
H A D | zend_accelerator_module.c | 88 if (ZCG(accel_directives).restrict_api && *ZCG(accel_directives).restrict_api) { in validate_api_restriction() 344 if (ZCG(accel_directives).validate_timestamps) { 407 if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).file_override_enabled) { 443 if (ZCG(enabled) && accel_startup_ok && 447 (ZCG(counted) || ZCSG(accelerator_enabled)) 454 if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).optimization_level) { 465 if (ZCG(accel_directives).file_cache) { 478 if (ZCG(enabled)) { 576 if (ZCG(accel_directives).validate_timestamps) { 613 …add_assoc_bool(return_value, "opcache_enabled", ZCG(enabled) && (ZCG(counted) || ZCSG(accelerator_… [all …]
|
H A D | zend_persist.c | 130 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist() 154 void *data = ZCG(mem); in zend_hash_persist() 222 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist_immutable() 246 void *data = ZCG(mem); in zend_hash_persist_immutable() 592 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, … in zend_persist_op_array_ex() 608 Z_PTR_P(zv) = ZCG(arena_mem); in zend_persist_op_array() 609 ZCG(arena_mem) = (void*)((char*)ZCG(arena_mem) + ZEND_ALIGNED_SIZE(sizeof(zend_op_array))); in zend_persist_op_array() 854 script->mem = ZCG(mem); in zend_accel_script_persist() 876 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in zend_accel_script_persist() 881 script->arena_mem = ZCG(arena_mem) = ZCG(mem); in zend_accel_script_persist() [all …]
|
H A D | zend_shared_alloc.c | 171 if (ZCG(accel_directives).memory_model && ZCG(accel_directives).memory_model[0]) { in zend_shared_alloc_startup() 172 char *model = ZCG(accel_directives).memory_model; in zend_shared_alloc_startup() 254 ZCG(locked) = 0; in zend_shared_alloc_startup() 314 if (!ZCG(locked)) { in zend_shared_alloc() 357 retval = ZCG(mem); in _zend_shared_memdup() 358 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup() 369 if (ZCG(locked)) { in zend_shared_alloc_safe_unlock() 408 ZCG(locked) = 1; in zend_shared_alloc_lock() 413 ZCG(locked) = 0; in zend_shared_alloc_unlock() 442 zend_hash_destroy(&ZCG(xlat_table)); in zend_shared_alloc_destroy_xlat_table() [all …]
|
H A D | zend_accelerator_debug.c | 38 if (type <= ZCG(accel_directives).log_verbosity_level) { in zend_accel_error() 44 if (!ZCG(accel_directives).error_log || in zend_accel_error() 45 !*ZCG(accel_directives).error_log || in zend_accel_error() 46 strcmp(ZCG(accel_directives).error_log, "stderr") == 0) { in zend_accel_error() 50 fLog = fopen(ZCG(accel_directives).error_log, "a+"); in zend_accel_error()
|
H A D | zend_accelerator_util_funcs.c | 38 …(void*)(((char*)(ptr)) + ((char*)ZCG(arena_mem) - (char*)ZCG(current_persistent_script)->arena_mem… 150 ZCG(internal_functions_count) = zend_hash_num_elements(&ZCG(function_table)); in zend_accel_copy_internal_functions() 217 …(void*)c->ce < (void*)((char*)ZCG(current_persistent_script)->arena_mem + ZCG(current_persistent_s… in zend_hash_clone_constants() 269 …(void*)new_entry->scope < (void*)((char*)ZCG(current_persistent_script)->arena_mem + ZCG(current_p… in zend_hash_clone_methods() 327 …(void*)prop_info->ce < (void*)((char*)ZCG(current_persistent_script)->arena_mem + ZCG(current_pers… in zend_hash_clone_prop_info() 637 zend_hash_init(&ZCG(bind_hash), 10, NULL, NULL, 0); in zend_accel_load_script() 639 ZCG(current_persistent_script) = persistent_script; in zend_accel_load_script() 640 ZCG(arena_mem) = NULL; in zend_accel_load_script() 645 ZCG(arena_mem) = (void*)(((zend_uintptr_t)ZCG(arena_mem) + 63L) & ~63L); in zend_accel_load_script() 676 zend_hash_destroy(&ZCG(bind_hash)); in zend_accel_load_script() [all …]
|
H A D | shared_alloc_win32.c | 87 snprintf(newname, sizeof(newname) - 1, "%s@%s@%.32s", name, uname, ZCG(system_id)); in create_name_with_username() 109 …snprintf(windir + l, sizeof(windir) - l - 1, "\\%s@%s@%.32s", ACCEL_FILEMAP_BASE, uname, ZCG(syste… in get_mmap_base_file() 174 if (ZCG(accel_directives).file_cache && ZCG(accel_directives).file_cache_fallback) { in zend_shared_alloc_reattach() 297 if (!ZCG(accel_directives).mmap_base || !*ZCG(accel_directives).mmap_base) { in create_segments() 300 char *s = ZCG(accel_directives).mmap_base; in create_segments()
|
H A D | zend_persist_calc.c | 29 #define ADD_DUP_SIZE(m,s) ZCG(current_persistent_script)->size += zend_shared_memdup_size((void*)m… 30 #define ADD_SIZE(m) ZCG(current_persistent_script)->size += ZEND_ALIGNED_SIZE(m) 32 #define ADD_ARENA_SIZE(m) ZCG(current_persistent_script)->arena_size += ZEND_ALIGNED_SIZE(m) 37 if (ZCG(current_persistent_script)->corrupted) { \ 243 if (ZCG(accel_directives).save_comments && op_array->doc_comment) { in zend_persist_op_array_calc_ex() 291 if (ZCG(accel_directives).save_comments && prop->doc_comment) { in zend_persist_property_info_calc() 305 if (ZCG(accel_directives).save_comments && c->doc_comment) { in zend_persist_class_constant_calc() 341 if (ZCG(accel_directives).save_comments && ce->info.user.doc_comment) { in zend_persist_class_entry_calc() 406 ZCG(current_persistent_script) = new_persistent_script; in zend_accel_script_persist_calc() 436 ZCG(current_persistent_script) = NULL; in zend_accel_script_persist_calc()
|
H A D | zend_file_cache.c | 217 ZCG(mem) = (void*)zend_string_realloc( in zend_file_cache_serialize_interned() 218 (zend_string*)ZCG(mem), in zend_file_cache_serialize_interned() 707 memcpy(info->system_id, ZCG(system_id), 32); in zend_file_cache_serialize() 732 len = strlen(ZCG(accel_directives).file_cache); in zend_file_cache_get_bin_file_path() 736 memcpy(filename + len + 1, ZCG(system_id), 32); in zend_file_cache_get_bin_file_path() 758 len = strlen(ZCG(accel_directives).file_cache); in zend_file_cache_get_bin_file_path() 768 memcpy(filename + len + 1, ZCG(system_id), 32); in zend_file_cache_get_bin_file_path() 856 zend_string_release((zend_string*)ZCG(mem)); in zend_file_cache_script_store() 870 zend_string_release((zend_string*)ZCG(mem)); in zend_file_cache_script_store() 879 zend_string_release((zend_string*)ZCG(mem)); in zend_file_cache_script_store() [all …]
|
H A D | zend_accelerator_hash.c | 90 hash_value ^= ZCG(root_hash); in zend_accel_hash_update() 149 hash_value ^= ZCG(root_hash); in zend_accel_hash_find_ex() 237 hash_value ^= ZCG(root_hash); in zend_accel_hash_unlink()
|
H A D | ZendAccelerator.h | 302 # define ZCG(v) ZEND_TSRMG(accel_globals_id, zend_accel_globals *, v) macro 308 # define ZCG(v) (accel_globals.v)
|
/PHP-7.1/ |
H A D | NEWS | 3187 . Fixed bug #71584 (Possible use-after-free of ZCG(cwd) in Zend Opcache).
|
Completed in 52 milliseconds