Lines Matching refs:CG

644 	ZEND_HASH_MAP_FOREACH_BUCKET(CG(function_table), p) {  in accel_copy_permanent_strings()
667 ZEND_HASH_MAP_FOREACH_BUCKET(CG(class_table), p) { in accel_copy_permanent_strings()
734 ZEND_HASH_MAP_FOREACH_BUCKET(CG(auto_globals), p) { in accel_copy_permanent_strings()
1503 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 64); in store_script_in_file_cache()
1507 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 8); in store_script_in_file_cache()
1510 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used); in store_script_in_file_cache()
1542 orig_compiler_options = CG(compiler_options); in cache_script_in_file_cache()
1543 CG(compiler_options) |= ZEND_COMPILE_WITH_FILE_CACHE; in cache_script_in_file_cache()
1546 CG(compiler_options) = orig_compiler_options; in cache_script_in_file_cache()
1558 orig_compiler_options = CG(compiler_options); in cache_script_in_shared_memory()
1560 CG(compiler_options) |= ZEND_COMPILE_WITH_FILE_CACHE; in cache_script_in_shared_memory()
1564 CG(compiler_options) = orig_compiler_options; in cache_script_in_shared_memory()
1795 orig_active_op_array = CG(active_op_array); in opcache_compile_file()
1807 orig_compiler_options = CG(compiler_options); in opcache_compile_file()
1808 CG(compiler_options) |= ZEND_COMPILE_HANDLE_OP_ARRAY; in opcache_compile_file()
1809 CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES; in opcache_compile_file()
1810 CG(compiler_options) |= ZEND_COMPILE_DELAYED_BINDING; in opcache_compile_file()
1811 CG(compiler_options) |= ZEND_COMPILE_NO_CONSTANT_SUBSTITUTION; in opcache_compile_file()
1812 CG(compiler_options) |= ZEND_COMPILE_IGNORE_OTHER_FILES; in opcache_compile_file()
1813 CG(compiler_options) |= ZEND_COMPILE_IGNORE_OBSERVER; in opcache_compile_file()
1815 CG(compiler_options) |= ZEND_COMPILE_WITH_FILE_CACHE; in opcache_compile_file()
1818 CG(compiler_options) = orig_compiler_options; in opcache_compile_file()
1822 CG(compiler_options) = orig_compiler_options; in opcache_compile_file()
1826 CG(active_op_array) = orig_active_op_array; in opcache_compile_file()
1845 …zend_accel_move_user_functions(CG(function_table), CG(function_table)->nNumUsed - orig_functions_c… in opcache_compile_file()
1846 …zend_accel_move_user_classes(CG(class_table), CG(class_table)->nNumUsed - orig_class_count, &new_p… in opcache_compile_file()
2288 if (ZCSG(map_ptr_last) > CG(map_ptr_last)) { in zend_accel_inheritance_cache_get()
2431 ZCSG(map_ptr_last) = CG(map_ptr_last); in zend_accel_inheritance_cache_add()
2583 ZCSG(map_ptr_last) = CG(map_ptr_last); in zend_reset_cache_vars()
3298 if ((func = zend_hash_str_find_ptr(CG(function_table), "chdir", sizeof("chdir")-1)) != NULL &&
3794 CG(in_compilation) = false;
3827 if (!zend_hash_exists(CG(class_table), key)) {
3913 void *checkpoint = zend_arena_checkpoint(CG(arena));
3927 CG(in_compilation) = true;
3928 CG(compiled_filename) = ce->info.user.filename;
3929 CG(zend_lineno) = ce->info.user.line_start;
3943 if (CG(delayed_variance_obligations)) {
3945 CG(delayed_variance_obligations), (uintptr_t) Z_CE_P(zv));
3952 zend_arena_release(&CG(arena), checkpoint);
3961 CG(in_compilation) = false;
3962 CG(compiled_filename) = NULL;
3978 CG(in_compilation) = true; /* prevent autoloading */
3982 CG(in_compilation) = false;
4281 zend_hash_extend(CG(function_table),
4282 CG(function_table)->nNumUsed + script->function_table.nNumUsed, 0);
4284 _zend_hash_append_ptr_ex(CG(function_table), p->key, Z_PTR(p->val), 1);
4292 zend_hash_extend(CG(class_table),
4293 CG(class_table)->nNumUsed + script->class_table.nNumUsed, 0);
4295 _zend_hash_append_ex(CG(class_table), p->key, &p->val, 1);
4308 if (CG(map_ptr_last) != ZCSG(map_ptr_last)) {
4309 size_t old_map_ptr_last = CG(map_ptr_last);
4310 CG(map_ptr_last) = ZCSG(map_ptr_last);
4311 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096);
4312 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1);
4313 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base));
4314 memset((void **) CG(map_ptr_real_base) + old_map_ptr_last, 0,
4315 (CG(map_ptr_last) - old_map_ptr_last) * sizeof(void *));
4334 orig_map_ptr_last = CG(map_ptr_last);
4342 orig_compiler_options = CG(compiler_options);
4344 CG(compiler_options) |= ZEND_COMPILE_PRELOAD_IN_CHILD;
4346 CG(compiler_options) |= ZEND_COMPILE_PRELOAD;
4347 CG(compiler_options) |= ZEND_COMPILE_HANDLE_OP_ARRAY;
4348 CG(compiler_options) |= ZEND_COMPILE_DELAYED_BINDING;
4349 CG(compiler_options) |= ZEND_COMPILE_NO_CONSTANT_SUBSTITUTION;
4350 CG(compiler_options) |= ZEND_COMPILE_IGNORE_OTHER_FILES;
4351 CG(skip_shebang) = true;
4372 CG(unclean_shutdown) = true;
4383 CG(unclean_shutdown) = true;
4442 CG(map_ptr_last) = orig_map_ptr_last;
4454 CG(map_ptr_last) = orig_map_ptr_last;
4465 CG(compiled_filename) = ZSTR_INIT_LITERAL("$PRELOAD$", 0);
4488 script->script.filename = CG(compiled_filename);
4489 CG(compiled_filename) = NULL;
4491 preload_move_user_functions(CG(function_table), &script->script.function_table);
4492 preload_move_user_classes(CG(class_table), &script->script.class_table);
4532 CG(map_ptr_last) = orig_map_ptr_last;
4536 CG(compiler_options) = orig_compiler_options;