Lines Matching refs:script
1076 if (persistent_script->script.filename != file_handle->opened_path && in do_validate_timestamps()
1077 !zend_string_equal_content(persistent_script->script.filename, file_handle->opened_path)) { in do_validate_timestamps()
1083 persistent_script->script.filename != full_path_ptr && in do_validate_timestamps()
1084 !zend_string_equal_content(persistent_script->script.filename, full_path_ptr)) { in do_validate_timestamps()
1111 zend_stream_init_filename_ex(&ps_handle, persistent_script->script.filename); in do_validate_timestamps()
1112 ps_handle.opened_path = persistent_script->script.filename; in do_validate_timestamps()
1462 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in store_script_in_file_cache()
1469 ZSTR_VAL(new_persistent_script->script.filename), in store_script_in_file_cache()
1488 …if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level… in cache_script_in_file_cache()
1508 …if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level… in cache_script_in_shared_memory()
1520 bucket = zend_accel_hash_find_entry(&ZCSG(hash), new_persistent_script->script.filename); in cache_script_in_shared_memory()
1619 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename); in cache_script_in_shared_memory()
1626 ZSTR_VAL(new_persistent_script->script.filename), in cache_script_in_shared_memory()
1635 …bucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->script.filename, 0, new_persis… in cache_script_in_shared_memory()
1637 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file… in cache_script_in_shared_memory()
1641 !zend_string_equals(new_persistent_script->script.filename, key)) { in cache_script_in_shared_memory()
1831 new_persistent_script->script.main_op_array = *op_array; in opcache_compile_file()
1832 …ction_table), CG(function_table)->nNumUsed - orig_functions_count, &new_persistent_script->script); in opcache_compile_file()
1833 …ses(CG(class_table), CG(class_table)->nNumUsed - orig_class_count, &new_persistent_script->script); in opcache_compile_file()
1834 new_persistent_script->script.first_early_binding_opline = in opcache_compile_file()
1860 new_persistent_script->script.filename = zend_string_copy(file_handle->opened_path); in opcache_compile_file()
1862 new_persistent_script->script.filename = zend_string_copy(file_handle->filename); in opcache_compile_file()
1864 zend_string_hash_val(new_persistent_script->script.filename); in opcache_compile_file()
1902 if (persistent_script->script.filename) { in file_cache_compile_file()
1909 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in file_cache_compile_file()
1913 char *fname = emalloc(sizeof("phar://") + ZSTR_LEN(persistent_script->script.filename)); in file_cache_compile_file()
1916 …izeof("phar://") - 1, ZSTR_VAL(persistent_script->script.filename), ZSTR_LEN(persistent_script->sc… in file_cache_compile_file()
1947 if ((ZSTR_LEN(persistent_script->script.filename)<sizeof("phar://.phar")) || in check_persistent_script_access()
1948 memcmp(ZSTR_VAL(persistent_script->script.filename), "phar://", sizeof("phar://")-1)) { in check_persistent_script_access()
1950 return access(ZSTR_VAL(persistent_script->script.filename), R_OK) != 0; in check_persistent_script_access()
1954 phar_path = estrdup(ZSTR_VAL(persistent_script->script.filename)+sizeof("phar://")-1); in check_persistent_script_access()
2133 …ZSTR_VAL(persistent_script->script.filename), persistent_script->dynamic_members.checksum, checksu… in persistent_compile_file()
2221 if (persistent_script->script.filename) { in persistent_compile_file()
2229 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in persistent_compile_file()
2233 char *fname = emalloc(sizeof("phar://") + ZSTR_LEN(persistent_script->script.filename)); in persistent_compile_file()
2236 …izeof("phar://") - 1, ZSTR_VAL(persistent_script->script.filename), ZSTR_LEN(persistent_script->sc… in persistent_compile_file()
2515 handle->opened_path = zend_string_copy(ZCG(cache_persistent_script)->script.filename); in persistent_stream_open_function()
2553 return zend_string_copy(persistent_script->script.filename); in persistent_zend_resolve_path()
3536 …zend_accel_hash_update(&ZCSG(hash), ZCSG(preload_script)->script.filename, 0, ZCSG(preload_script)…
3540 zend_accel_hash_update(&ZCSG(hash), (*p)->script.filename, 0, *p);
3637 zend_persistent_script *script; local
3639 script = create_persistent_script();
3640 script->script.first_early_binding_opline = (uint32_t)-1;
3641 script->script.filename = zend_string_copy(op_array->filename);
3642 zend_string_hash_val(script->script.filename);
3643 script->script.main_op_array = *op_array;
3648 zend_hash_add_ptr(preload_scripts, script->script.filename, script);
3888 zend_persistent_script *script; local
4036 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4037 zend_op_array *op_array = &script->script.main_op_array;
4041 script->script.first_early_binding_opline = zend_build_delayed_early_binding_list(op_array);
4042 if (script->script.first_early_binding_opline == (uint32_t)-1) {
4073 zend_persistent_script *script; local
4077 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4078 script->empty = 1;
4084 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4085 if (script->empty) {
4087 zend_op *opline = script->script.main_op_array.opcodes;
4088 zend_op *end = opline + script->script.main_op_array.last;
4119 script->empty = 0;
4127 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4128 zend_op *opline = script->script.main_op_array.opcodes;
4129 zend_op *end = opline + script->script.main_op_array.last;
4192 static int preload_optimize(zend_persistent_script *script) argument
4199 ZEND_HASH_FOREACH_PTR(&script->script.class_table, ce) {
4206 ZEND_HASH_FOREACH_PTR(&tmp_script->script.class_table, ce) {
4213 …if (!zend_optimize_script(&script->script, ZCG(accel_directives).optimization_level, ZCG(accel_dir…
4217 ZEND_HASH_FOREACH_PTR(&script->script.class_table, ce) {
4221 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4222 ZEND_HASH_FOREACH_PTR(&script->script.class_table, ce) {
4229 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4230 …if (!zend_optimize_script(&script->script, ZCG(accel_directives).optimization_level, ZCG(accel_dir…
4305 new_persistent_script->is_phar = is_phar_file(new_persistent_script->script.filename);
4312 ZSTR_VAL(new_persistent_script->script.filename),
4321 …bucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->script.filename, 0, new_persis…
4323 …zend_accel_error(ACCEL_LOG_INFO, "Cached script '%s'", ZSTR_VAL(new_persistent_script->script.file…
4334 zend_script *script = &ZCSG(preload_script)->script; local
4335 if (zend_hash_num_elements(&script->function_table)) {
4336 Bucket *p = script->function_table.arData;
4337 Bucket *end = p + script->function_table.nNumUsed;
4340 CG(function_table)->nNumUsed + script->function_table.nNumUsed, 0);
4346 if (zend_hash_num_elements(&script->class_table)) {
4347 Bucket *p = script->class_table.arData;
4348 Bucket *end = p + script->class_table.nNumUsed;
4351 CG(class_table)->nNumUsed + script->class_table.nNumUsed, 0);
4455 zend_persistent_script *script; local
4468 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4474 fake_execute_data.func = (zend_function*)&script->script.main_op_array;
4477 script->compiler_halt_offset = Z_LVAL_P(offset);
4519 script = create_persistent_script();
4520 script->ping_auto_globals_mask = ping_auto_globals_mask;
4525 init_op_array(&script->script.main_op_array, ZEND_USER_FUNCTION, 1);
4527 init_op_array(&script->script.main_op_array, ZEND_USER_FUNCTION, 2);
4529 script->script.main_op_array.fn_flags |= ZEND_ACC_DONE_PASS_TWO;
4530 script->script.main_op_array.last = 1;
4531 script->script.main_op_array.last_literal = 1;
4533 script->script.main_op_array.literals = (zval*)emalloc(sizeof(zval));
4535 script->script.main_op_array.literals = (zval*)(script->script.main_op_array.opcodes + 1);
4537 ZVAL_NULL(script->script.main_op_array.literals);
4538 memset(script->script.main_op_array.opcodes, 0, sizeof(zend_op));
4539 script->script.main_op_array.opcodes[0].opcode = ZEND_RETURN;
4540 script->script.main_op_array.opcodes[0].op1_type = IS_CONST;
4541 script->script.main_op_array.opcodes[0].op1.constant = 0;
4542 …ZEND_PASS_TWO_UPDATE_CONSTANT(&script->script.main_op_array, script->script.main_op_array.opcodes,…
4543 zend_vm_set_opcode_handler(script->script.main_op_array.opcodes);
4545 script->script.filename = CG(compiled_filename);
4548 script->script.first_early_binding_opline = (uint32_t)-1;
4550 preload_move_user_functions(CG(function_table), &script->script.function_table);
4551 preload_move_user_classes(CG(class_table), &script->script.class_table);
4553 zend_hash_sort_ex(&script->script.class_table, preload_sort_classes, NULL, 0);
4555 if (preload_optimize(script) != SUCCESS) {
4565 ZCSG(preload_script) = preload_script_in_shared_memory(script);
4578 ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4579 if (zend_hash_num_elements(&script->script.class_table) > 1) {
4580 zend_hash_sort_ex(&script->script.class_table, preload_sort_classes, NULL, 0);
4582 ZCSG(saved_scripts)[i++] = preload_script_in_shared_memory(script);