Lines Matching refs:script

1117 		if (persistent_script->script.filename != file_handle->opened_path &&  in do_validate_timestamps()
1118 !zend_string_equal_content(persistent_script->script.filename, file_handle->opened_path)) { in do_validate_timestamps()
1124 persistent_script->script.filename != full_path_ptr && in do_validate_timestamps()
1125 !zend_string_equal_content(persistent_script->script.filename, full_path_ptr)) { in do_validate_timestamps()
1152 zend_stream_init_filename_ex(&ps_handle, persistent_script->script.filename); in do_validate_timestamps()
1153 ps_handle.opened_path = persistent_script->script.filename; in do_validate_timestamps()
1524 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in store_script_in_file_cache()
1531 ZSTR_VAL(new_persistent_script->script.filename), in store_script_in_file_cache()
1548 …zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level, ZCG… in cache_script_in_file_cache()
1566 …zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level, ZCG… 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()
1637 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in cache_script_in_shared_memory()
1644 ZSTR_VAL(new_persistent_script->script.filename), in cache_script_in_shared_memory()
1651 …bucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->script.filename, 0, new_persis… 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()
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()
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()
1923 if (persistent_script->script.filename) { in file_cache_compile_file()
1930 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in file_cache_compile_file()
1934 char *fname = emalloc(sizeof("phar://") + ZSTR_LEN(persistent_script->script.filename)); in file_cache_compile_file()
1937 …izeof("phar://") - 1, ZSTR_VAL(persistent_script->script.filename), ZSTR_LEN(persistent_script->sc… in file_cache_compile_file()
1967 if ((ZSTR_LEN(persistent_script->script.filename)<sizeof("phar://.phar")) || in check_persistent_script_access()
1968 memcmp(ZSTR_VAL(persistent_script->script.filename), "phar://", sizeof("phar://")-1)) { in check_persistent_script_access()
1970 return access(ZSTR_VAL(persistent_script->script.filename), R_OK) != 0; in check_persistent_script_access()
1974 phar_path = estrdup(ZSTR_VAL(persistent_script->script.filename)+sizeof("phar://")-1); in check_persistent_script_access()
2205 if (persistent_script->script.filename) { in persistent_compile_file()
2213 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in persistent_compile_file()
2217 char *fname = emalloc(sizeof("phar://") + ZSTR_LEN(persistent_script->script.filename)); in persistent_compile_file()
2220 …izeof("phar://") - 1, ZSTR_VAL(persistent_script->script.filename), ZSTR_LEN(persistent_script->sc… in persistent_compile_file()
2512 handle->opened_path = zend_string_copy(ZCG(cache_persistent_script)->script.filename); in persistent_stream_open_function()
2550 return zend_string_copy(persistent_script->script.filename); in persistent_zend_resolve_path()
3553 …zend_accel_hash_update(&ZCSG(hash), ZCSG(preload_script)->script.filename, 0, ZCSG(preload_script)…
3557 zend_accel_hash_update(&ZCSG(hash), (*p)->script.filename, 0, *p);
3654 zend_persistent_script *script; local
3656 script = create_persistent_script();
3657 script->script.filename = zend_string_copy(op_array->filename);
3658 zend_string_hash_val(script->script.filename);
3659 script->script.main_op_array = *op_array;
3664 zend_hash_add_ptr(preload_scripts, script->script.filename, script);
3905 zend_persistent_script *script; local
4052 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4053 zend_op_array *op_array = &script->script.main_op_array;
4057 zend_accel_free_delayed_early_binding_list(script);
4058 zend_accel_build_delayed_early_binding_list(script);
4059 if (!script->num_early_bindings) {
4090 zend_persistent_script *script; local
4094 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4095 script->empty = true;
4101 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4102 if (script->empty) {
4104 zend_op *opline = script->script.main_op_array.opcodes;
4105 zend_op *end = opline + script->script.main_op_array.last;
4136 script->empty = false;
4144 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4145 zend_op *opline = script->script.main_op_array.opcodes;
4146 zend_op *end = opline + script->script.main_op_array.last;
4209 static void preload_optimize(zend_persistent_script *script) argument
4216 ZEND_HASH_MAP_FOREACH_PTR(&script->script.class_table, ce) {
4223 ZEND_HASH_MAP_FOREACH_PTR(&tmp_script->script.class_table, ce) {
4230 …zend_optimize_script(&script->script, ZCG(accel_directives).optimization_level, ZCG(accel_directiv…
4231 zend_accel_finalize_delayed_early_binding_list(script);
4233 ZEND_HASH_MAP_FOREACH_PTR(&script->script.class_table, ce) {
4237 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4238 ZEND_HASH_MAP_FOREACH_PTR(&script->script.class_table, ce) {
4245 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4246 …zend_optimize_script(&script->script, ZCG(accel_directives).optimization_level, ZCG(accel_directiv…
4247 zend_accel_finalize_delayed_early_binding_list(script);
4281 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename);
4288 ZSTR_VAL(new_persistent_script->script.filename),
4295 …bucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->script.filename, 0, new_persis…
4297 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file…
4308 zend_script *script = &ZCSG(preload_script)->script; local
4309 if (zend_hash_num_elements(&script->function_table)) {
4310 Bucket *p = script->function_table.arData;
4311 Bucket *end = p + script->function_table.nNumUsed;
4314 CG(function_table)->nNumUsed + script->function_table.nNumUsed, 0);
4320 if (zend_hash_num_elements(&script->class_table)) {
4321 Bucket *p = script->class_table.arData;
4322 Bucket *end = p + script->class_table.nNumUsed;
4325 CG(class_table)->nNumUsed + script->class_table.nNumUsed, 0);
4429 zend_persistent_script *script; local
4442 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4448 fake_execute_data.func = (zend_function*)&script->script.main_op_array;
4451 script->compiler_halt_offset = Z_LVAL_P(offset);
4499 script = create_persistent_script();
4500 script->ping_auto_globals_mask = ping_auto_globals_mask;
4505 init_op_array(&script->script.main_op_array, ZEND_USER_FUNCTION, 1);
4507 init_op_array(&script->script.main_op_array, ZEND_USER_FUNCTION, 2);
4509 script->script.main_op_array.fn_flags |= ZEND_ACC_DONE_PASS_TWO;
4510 script->script.main_op_array.last = 1;
4511 script->script.main_op_array.last_literal = 1;
4512 script->script.main_op_array.T = ZEND_OBSERVER_ENABLED;
4514 script->script.main_op_array.literals = (zval*)emalloc(sizeof(zval));
4516 script->script.main_op_array.literals = (zval*)(script->script.main_op_array.opcodes + 1);
4518 ZVAL_NULL(script->script.main_op_array.literals);
4519 memset(script->script.main_op_array.opcodes, 0, sizeof(zend_op));
4520 script->script.main_op_array.opcodes[0].opcode = ZEND_RETURN;
4521 script->script.main_op_array.opcodes[0].op1_type = IS_CONST;
4522 script->script.main_op_array.opcodes[0].op1.constant = 0;
4523 …ZEND_PASS_TWO_UPDATE_CONSTANT(&script->script.main_op_array, script->script.main_op_array.opcodes,…
4524 zend_vm_set_opcode_handler(script->script.main_op_array.opcodes);
4526 script->script.filename = CG(compiled_filename);
4529 preload_move_user_functions(CG(function_table), &script->script.function_table);
4530 preload_move_user_classes(CG(class_table), &script->script.class_table);
4532 zend_hash_sort_ex(&script->script.class_table, preload_sort_classes, NULL, 0);
4534 preload_optimize(script);
4541 ZCSG(preload_script) = preload_script_in_shared_memory(script);
4554 ZEND_HASH_MAP_FOREACH_PTR(preload_scripts, script) {
4555 if (zend_hash_num_elements(&script->script.class_table) > 1) {
4556 zend_hash_sort_ex(&script->script.class_table, preload_sort_classes, NULL, 0);
4558 ZCSG(saved_scripts)[i++] = preload_script_in_shared_memory(script);