Lines Matching refs:new_persistent_script

1227 …c zend_persistent_script *store_script_in_file_cache(zend_persistent_script *new_persistent_script)  in store_script_in_file_cache()  argument
1234 memory_used = zend_accel_script_persist_calc(new_persistent_script, NULL, 0, 0); in store_script_in_file_cache()
1246 new_persistent_script = zend_accel_script_persist(new_persistent_script, NULL, 0, 0); in store_script_in_file_cache()
1250 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in store_script_in_file_cache()
1253 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in store_script_in_file_cache()
1255 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in store_script_in_file_cache()
1257 ZSTR_VAL(new_persistent_script->script.filename), in store_script_in_file_cache()
1258 (size_t)new_persistent_script->mem, in store_script_in_file_cache()
1259 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in store_script_in_file_cache()
1263new_persistent_script->dynamic_members.checksum = zend_accel_script_checksum(new_persistent_script in store_script_in_file_cache()
1265 zend_file_cache_script_store(new_persistent_script, 0); in store_script_in_file_cache()
1267 return new_persistent_script; in store_script_in_file_cache()
1270 …istent_script *cache_script_in_file_cache(zend_persistent_script *new_persistent_script, int *from… in cache_script_in_file_cache() argument
1273 if (!zend_accel_script_persistable(new_persistent_script)) { in cache_script_in_file_cache()
1274 return new_persistent_script; in cache_script_in_file_cache()
1277 …if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level… in cache_script_in_file_cache()
1278 return new_persistent_script; in cache_script_in_file_cache()
1282 return store_script_in_file_cache(new_persistent_script); in cache_script_in_file_cache()
1286 …ent_script *cache_script_in_shared_memory(zend_persistent_script *new_persistent_script, char *key… in cache_script_in_shared_memory() argument
1292 if (!zend_accel_script_persistable(new_persistent_script)) { in cache_script_in_shared_memory()
1293 return new_persistent_script; in cache_script_in_shared_memory()
1296 …if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level… in cache_script_in_shared_memory()
1297 return new_persistent_script; in cache_script_in_shared_memory()
1306 bucket = zend_accel_hash_find_entry(&ZCSG(hash), new_persistent_script->script.filename); in cache_script_in_shared_memory()
1313 (new_persistent_script->timestamp == existing_persistent_script->timestamp))) { in cache_script_in_shared_memory()
1317 return new_persistent_script; in cache_script_in_shared_memory()
1328 new_persistent_script = store_script_in_file_cache(new_persistent_script); in cache_script_in_shared_memory()
1332 return new_persistent_script; in cache_script_in_shared_memory()
1338 memory_used = zend_accel_script_persist_calc(new_persistent_script, key, key_length, 1); in cache_script_in_shared_memory()
1354 new_persistent_script = store_script_in_file_cache(new_persistent_script); in cache_script_in_shared_memory()
1358 return new_persistent_script; in cache_script_in_shared_memory()
1362 new_persistent_script = zend_accel_script_persist(new_persistent_script, &key, key_length, 1); in cache_script_in_shared_memory()
1366 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in cache_script_in_shared_memory()
1369 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_shared_memory()
1371 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in cache_script_in_shared_memory()
1373 ZSTR_VAL(new_persistent_script->script.filename), in cache_script_in_shared_memory()
1374 (size_t)new_persistent_script->mem, in cache_script_in_shared_memory()
1375 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in cache_script_in_shared_memory()
1379new_persistent_script->dynamic_members.checksum = zend_accel_script_checksum(new_persistent_script in cache_script_in_shared_memory()
1382 …SG(hash), ZSTR_VAL(new_persistent_script->script.filename), ZSTR_LEN(new_persistent_script->script… in cache_script_in_shared_memory()
1384 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file… in cache_script_in_shared_memory()
1388 (ZSTR_LEN(new_persistent_script->script.filename) != key_length || in cache_script_in_shared_memory()
1389 memcmp(ZSTR_VAL(new_persistent_script->script.filename), key, key_length) != 0)) { in cache_script_in_shared_memory()
1401new_persistent_script->dynamic_members.memory_consumption = ZEND_ALIGNED_SIZE(new_persistent_scrip… in cache_script_in_shared_memory()
1408 zend_file_cache_script_store(new_persistent_script, 1); in cache_script_in_shared_memory()
1414 return new_persistent_script; in cache_script_in_shared_memory()
1480 zend_persistent_script *new_persistent_script; in opcache_compile_file() local
1542 new_persistent_script = create_persistent_script(); in opcache_compile_file()
1552 EG(class_table) = CG(class_table) = &new_persistent_script->script.class_table; in opcache_compile_file()
1577 free_persistent_script(new_persistent_script, 1); in opcache_compile_file()
1589 …zend_accel_move_user_functions(&ZCG(function_table), &new_persistent_script->script.function_table… in opcache_compile_file()
1590 new_persistent_script->script.main_op_array = *op_array; in opcache_compile_file()
1597 new_persistent_script->ping_auto_globals_mask = zend_accel_get_auto_globals(); in opcache_compile_file()
1599 new_persistent_script->ping_auto_globals_mask = zend_accel_get_auto_globals_no_jit(); in opcache_compile_file()
1606 new_persistent_script->timestamp = timestamp; in opcache_compile_file()
1607new_persistent_script->dynamic_members.revalidate = ZCG(request_time) + ZCG(accel_directives).reva… in opcache_compile_file()
1611 new_persistent_script->script.filename = zend_string_copy(file_handle->opened_path); in opcache_compile_file()
1613new_persistent_script->script.filename = zend_string_init(file_handle->filename, strlen(file_handl… in opcache_compile_file()
1615 zend_string_hash_val(new_persistent_script->script.filename); in opcache_compile_file()
1618 return new_persistent_script; in opcache_compile_file()