Lines Matching refs:new_persistent_script
1366 …c zend_persistent_script *store_script_in_file_cache(zend_persistent_script *new_persistent_script) in store_script_in_file_cache() argument
1373 memory_used = zend_accel_script_persist_calc(new_persistent_script, NULL, 0, 0); in store_script_in_file_cache()
1391 new_persistent_script = zend_accel_script_persist(new_persistent_script, NULL, 0, 0); in store_script_in_file_cache()
1395 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in store_script_in_file_cache()
1398 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in store_script_in_file_cache()
1400 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in store_script_in_file_cache()
1402 ZSTR_VAL(new_persistent_script->script.filename), in store_script_in_file_cache()
1403 (size_t)new_persistent_script->mem, in store_script_in_file_cache()
1404 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in store_script_in_file_cache()
1408 …new_persistent_script->dynamic_members.checksum = zend_accel_script_checksum(new_persistent_script… in store_script_in_file_cache()
1410 zend_file_cache_script_store(new_persistent_script, 0); in store_script_in_file_cache()
1412 return new_persistent_script; in store_script_in_file_cache()
1415 …istent_script *cache_script_in_file_cache(zend_persistent_script *new_persistent_script, int *from… in cache_script_in_file_cache() argument
1421 …if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level… in cache_script_in_file_cache()
1423 return new_persistent_script; in cache_script_in_file_cache()
1428 return store_script_in_file_cache(new_persistent_script); in cache_script_in_file_cache()
1431 …ent_script *cache_script_in_shared_memory(zend_persistent_script *new_persistent_script, const cha… in cache_script_in_shared_memory() argument
1441 …if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level… in cache_script_in_shared_memory()
1443 return new_persistent_script; in cache_script_in_shared_memory()
1453 bucket = zend_accel_hash_find_entry(&ZCSG(hash), new_persistent_script->script.filename); in cache_script_in_shared_memory()
1460 (new_persistent_script->timestamp == existing_persistent_script->timestamp))) { in cache_script_in_shared_memory()
1466 free_persistent_script(new_persistent_script, 1); in cache_script_in_shared_memory()
1470 return new_persistent_script; in cache_script_in_shared_memory()
1481 new_persistent_script = store_script_in_file_cache(new_persistent_script); in cache_script_in_shared_memory()
1484 return new_persistent_script; in cache_script_in_shared_memory()
1490 memory_used = zend_accel_script_persist_calc(new_persistent_script, key, key_length, 1); in cache_script_in_shared_memory()
1539 new_persistent_script = store_script_in_file_cache(new_persistent_script); in cache_script_in_shared_memory()
1542 return new_persistent_script; in cache_script_in_shared_memory()
1548 new_persistent_script = zend_accel_script_persist(new_persistent_script, &key, key_length, 1); in cache_script_in_shared_memory()
1552 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in cache_script_in_shared_memory()
1555 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_shared_memory()
1557 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in cache_script_in_shared_memory()
1559 ZSTR_VAL(new_persistent_script->script.filename), in cache_script_in_shared_memory()
1560 (size_t)new_persistent_script->mem, in cache_script_in_shared_memory()
1561 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in cache_script_in_shared_memory()
1565 …new_persistent_script->dynamic_members.checksum = zend_accel_script_checksum(new_persistent_script… in cache_script_in_shared_memory()
1568 …SG(hash), ZSTR_VAL(new_persistent_script->script.filename), ZSTR_LEN(new_persistent_script->script… in cache_script_in_shared_memory()
1570 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file… in cache_script_in_shared_memory()
1574 (ZSTR_LEN(new_persistent_script->script.filename) != key_length || in cache_script_in_shared_memory()
1575 memcmp(ZSTR_VAL(new_persistent_script->script.filename), key, key_length) != 0)) { in cache_script_in_shared_memory()
1587 …new_persistent_script->dynamic_members.memory_consumption = ZEND_ALIGNED_SIZE(new_persistent_scrip… in cache_script_in_shared_memory()
1593 zend_file_cache_script_store(new_persistent_script, 1); in cache_script_in_shared_memory()
1598 return new_persistent_script; in cache_script_in_shared_memory()
1704 zend_persistent_script *new_persistent_script; in opcache_compile_file() local
1819 new_persistent_script = create_persistent_script(); in opcache_compile_file()
1820 new_persistent_script->script.main_op_array = *op_array; in opcache_compile_file()
1821 …ction_table), CG(function_table)->nNumUsed - orig_functions_count, &new_persistent_script->script); in opcache_compile_file()
1822 …ses(CG(class_table), CG(class_table)->nNumUsed - orig_class_count, &new_persistent_script->script); in opcache_compile_file()
1823 new_persistent_script->script.first_early_binding_opline = in opcache_compile_file()
1827 new_persistent_script->num_warnings = ZCG(num_warnings); in opcache_compile_file()
1828 new_persistent_script->warnings = ZCG(warnings); in opcache_compile_file()
1837 new_persistent_script->ping_auto_globals_mask = zend_accel_get_auto_globals(); in opcache_compile_file()
1839 new_persistent_script->ping_auto_globals_mask = zend_accel_get_auto_globals_no_jit(); in opcache_compile_file()
1846 new_persistent_script->timestamp = timestamp; in opcache_compile_file()
1847 …new_persistent_script->dynamic_members.revalidate = ZCG(request_time) + ZCG(accel_directives).reva… in opcache_compile_file()
1851 new_persistent_script->script.filename = zend_string_copy(file_handle->opened_path); in opcache_compile_file()
1853 …new_persistent_script->script.filename = zend_string_init(file_handle->filename, strlen(file_handl… in opcache_compile_file()
1855 zend_string_hash_val(new_persistent_script->script.filename); in opcache_compile_file()
1858 return new_persistent_script; in opcache_compile_file()
4225 …d_persistent_script* preload_script_in_shared_memory(zend_persistent_script *new_persistent_script) argument
4239 memory_used = zend_accel_script_persist_calc(new_persistent_script, NULL, 0, 1);
4291 new_persistent_script = zend_accel_script_persist(new_persistent_script, NULL, 0, 1);
4293 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename);
4296 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) {
4298 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER…
4300 ZSTR_VAL(new_persistent_script->script.filename),
4301 (size_t)new_persistent_script->mem,
4302 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size),
4306 …new_persistent_script->dynamic_members.checksum = zend_accel_script_checksum(new_persistent_script…
4309 …SG(hash), ZSTR_VAL(new_persistent_script->script.filename), ZSTR_LEN(new_persistent_script->script…
4311 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file…
4314 …new_persistent_script->dynamic_members.memory_consumption = ZEND_ALIGNED_SIZE(new_persistent_scrip…
4316 return new_persistent_script;