Lines Matching refs:new_persistent_script
1495 …c zend_persistent_script *store_script_in_file_cache(zend_persistent_script *new_persistent_script) in store_script_in_file_cache() argument
1502 memory_used = zend_accel_script_persist_calc(new_persistent_script, 0); in store_script_in_file_cache()
1520 new_persistent_script = zend_accel_script_persist(new_persistent_script, 0); in store_script_in_file_cache()
1524 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in store_script_in_file_cache()
1527 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in store_script_in_file_cache()
1529 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in store_script_in_file_cache()
1531 ZSTR_VAL(new_persistent_script->script.filename), in store_script_in_file_cache()
1532 (size_t)new_persistent_script->mem, in store_script_in_file_cache()
1533 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in store_script_in_file_cache()
1537 zend_file_cache_script_store(new_persistent_script, /* is_shm */ false); in store_script_in_file_cache()
1539 return new_persistent_script; in store_script_in_file_cache()
1542 …istent_script *cache_script_in_file_cache(zend_persistent_script *new_persistent_script, bool *fro… in cache_script_in_file_cache() argument
1548 …zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level, ZCG… in cache_script_in_file_cache()
1549 zend_accel_finalize_delayed_early_binding_list(new_persistent_script); in cache_script_in_file_cache()
1553 return store_script_in_file_cache(new_persistent_script); in cache_script_in_file_cache()
1556 …ent_script *cache_script_in_shared_memory(zend_persistent_script *new_persistent_script, zend_stri… in cache_script_in_shared_memory() argument
1566 …zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level, ZCG… in cache_script_in_shared_memory()
1567 zend_accel_finalize_delayed_early_binding_list(new_persistent_script); in cache_script_in_shared_memory()
1576 bucket = zend_accel_hash_find_entry(&ZCSG(hash), new_persistent_script->script.filename); in cache_script_in_shared_memory()
1583 (new_persistent_script->timestamp == existing_persistent_script->timestamp))) { in cache_script_in_shared_memory()
1589 free_persistent_script(new_persistent_script, 1); in cache_script_in_shared_memory()
1593 return new_persistent_script; in cache_script_in_shared_memory()
1604 new_persistent_script = store_script_in_file_cache(new_persistent_script); in cache_script_in_shared_memory()
1607 return new_persistent_script; in cache_script_in_shared_memory()
1613 memory_used = zend_accel_script_persist_calc(new_persistent_script, 1); in cache_script_in_shared_memory()
1622 new_persistent_script = store_script_in_file_cache(new_persistent_script); in cache_script_in_shared_memory()
1625 return new_persistent_script; in cache_script_in_shared_memory()
1633 new_persistent_script = zend_accel_script_persist(new_persistent_script, 1); in cache_script_in_shared_memory()
1637 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in cache_script_in_shared_memory()
1640 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_shared_memory()
1642 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in cache_script_in_shared_memory()
1644 ZSTR_VAL(new_persistent_script->script.filename), in cache_script_in_shared_memory()
1645 (size_t)new_persistent_script->mem, in cache_script_in_shared_memory()
1646 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in cache_script_in_shared_memory()
1651 …ucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->script.filename, 0, new_persist… in cache_script_in_shared_memory()
1653 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file… in cache_script_in_shared_memory()
1657 !zend_string_equals(new_persistent_script->script.filename, key)) { in cache_script_in_shared_memory()
1675 …new_persistent_script->dynamic_members.memory_consumption = ZEND_ALIGNED_SIZE(new_persistent_scrip… in cache_script_in_shared_memory()
1681 zend_file_cache_script_store(new_persistent_script, /* is_shm */ true); in cache_script_in_shared_memory()
1686 return new_persistent_script; in cache_script_in_shared_memory()
1731 zend_persistent_script *new_persistent_script; in opcache_compile_file() local
1854 new_persistent_script = create_persistent_script(); in opcache_compile_file()
1855 new_persistent_script->script.main_op_array = *op_array; in opcache_compile_file()
1856 …ction_table), CG(function_table)->nNumUsed - orig_functions_count, &new_persistent_script->script); in opcache_compile_file()
1857 …ses(CG(class_table), CG(class_table)->nNumUsed - orig_class_count, &new_persistent_script->script); in opcache_compile_file()
1858 zend_accel_build_delayed_early_binding_list(new_persistent_script); in opcache_compile_file()
1859 new_persistent_script->num_warnings = EG(num_errors); in opcache_compile_file()
1860 new_persistent_script->warnings = EG(errors); in opcache_compile_file()
1869 new_persistent_script->ping_auto_globals_mask = zend_accel_get_auto_globals(); in opcache_compile_file()
1876 new_persistent_script->timestamp = timestamp; in opcache_compile_file()
1877 …new_persistent_script->dynamic_members.revalidate = ZCG(request_time) + ZCG(accel_directives).reva… in opcache_compile_file()
1881 new_persistent_script->script.filename = zend_string_copy(file_handle->opened_path); in opcache_compile_file()
1883 new_persistent_script->script.filename = zend_string_copy(file_handle->filename); in opcache_compile_file()
1885 zend_string_hash_val(new_persistent_script->script.filename); in opcache_compile_file()
1888 return new_persistent_script; in opcache_compile_file()
4251 …d_persistent_script* preload_script_in_shared_memory(zend_persistent_script *new_persistent_script) argument
4265 memory_used = zend_accel_script_persist_calc(new_persistent_script, 1);
4279 new_persistent_script = zend_accel_script_persist(new_persistent_script, 1);
4281 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename);
4284 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) {
4286 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER…
4288 ZSTR_VAL(new_persistent_script->script.filename),
4289 (size_t)new_persistent_script->mem,
4290 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size),
4295 …ucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->script.filename, 0, new_persist…
4297 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file…
4300 …new_persistent_script->dynamic_members.memory_consumption = ZEND_ALIGNED_SIZE(new_persistent_scrip…
4302 return new_persistent_script;