persistent_script 833 ext/opcache/ZendAccelerator.c static inline int do_validate_timestamps(zend_persistent_script *persistent_script, zend_file_handle *file_handle TSRMLS_DC) persistent_script 843 ext/opcache/ZendAccelerator.c if (strcmp(persistent_script->full_path, file_handle->opened_path) != 0) { persistent_script 852 ext/opcache/ZendAccelerator.c if (full_path_ptr && strcmp(persistent_script->full_path, full_path_ptr) != 0) { persistent_script 859 ext/opcache/ZendAccelerator.c if (persistent_script->timestamp == 0) { persistent_script 867 ext/opcache/ZendAccelerator.c if (zend_get_file_handle_timestamp(file_handle, NULL TSRMLS_CC) == persistent_script->timestamp) { persistent_script 880 ext/opcache/ZendAccelerator.c ps_handle.filename = persistent_script->full_path; persistent_script 881 ext/opcache/ZendAccelerator.c ps_handle.opened_path = persistent_script->full_path; persistent_script 883 ext/opcache/ZendAccelerator.c if (zend_get_file_handle_timestamp(&ps_handle, NULL TSRMLS_CC) == persistent_script->timestamp) { persistent_script 890 ext/opcache/ZendAccelerator.c int validate_timestamp_and_record(zend_persistent_script *persistent_script, zend_file_handle *file_handle TSRMLS_DC) persistent_script 893 ext/opcache/ZendAccelerator.c persistent_script->dynamic_members.revalidate >= ZCG(request_time)) { persistent_script 895 ext/opcache/ZendAccelerator.c } else if (do_validate_timestamps(persistent_script, file_handle TSRMLS_CC) == FAILURE) { persistent_script 898 ext/opcache/ZendAccelerator.c persistent_script->dynamic_members.revalidate = ZCG(request_time) + ZCG(accel_directives).revalidate_freq; persistent_script 903 ext/opcache/ZendAccelerator.c static unsigned int zend_accel_script_checksum(zend_persistent_script *persistent_script) persistent_script 905 ext/opcache/ZendAccelerator.c signed char *mem = (signed char*)persistent_script->mem; persistent_script 906 ext/opcache/ZendAccelerator.c size_t size = persistent_script->size; persistent_script 907 ext/opcache/ZendAccelerator.c size_t persistent_script_check_block_size = ((char *)&(persistent_script->dynamic_members)) - (char *)persistent_script; persistent_script 910 ext/opcache/ZendAccelerator.c if (mem < (signed char*)persistent_script) { persistent_script 911 ext/opcache/ZendAccelerator.c checksum = zend_adler32(checksum, mem, (signed char*)persistent_script - mem); persistent_script 912 ext/opcache/ZendAccelerator.c size -= (signed char*)persistent_script - mem; persistent_script 913 ext/opcache/ZendAccelerator.c mem += (signed char*)persistent_script - mem; persistent_script 917 ext/opcache/ZendAccelerator.c mem += sizeof(*persistent_script); persistent_script 918 ext/opcache/ZendAccelerator.c size -= sizeof(*persistent_script); persistent_script 1063 ext/opcache/ZendAccelerator.c zend_persistent_script *persistent_script; persistent_script 1079 ext/opcache/ZendAccelerator.c persistent_script = zend_accel_hash_find(&ZCSG(hash), realpath, strlen(realpath) + 1); persistent_script 1080 ext/opcache/ZendAccelerator.c if (persistent_script && !persistent_script->corrupted) { persistent_script 1089 ext/opcache/ZendAccelerator.c do_validate_timestamps(persistent_script, &file_handle TSRMLS_CC) == FAILURE) { persistent_script 1092 ext/opcache/ZendAccelerator.c if (!persistent_script->corrupted) { persistent_script 1093 ext/opcache/ZendAccelerator.c persistent_script->corrupted = 1; persistent_script 1094 ext/opcache/ZendAccelerator.c persistent_script->timestamp = 0; persistent_script 1095 ext/opcache/ZendAccelerator.c ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption; persistent_script 1467 ext/opcache/ZendAccelerator.c zend_persistent_script *persistent_script = NULL; persistent_script 1514 ext/opcache/ZendAccelerator.c persistent_script = ZCG(cache_persistent_script); persistent_script 1522 ext/opcache/ZendAccelerator.c persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1); persistent_script 1523 ext/opcache/ZendAccelerator.c if (!persistent_script) { persistent_script 1554 ext/opcache/ZendAccelerator.c persistent_script = (zend_persistent_script *)bucket->data; persistent_script 1556 ext/opcache/ZendAccelerator.c !persistent_script->corrupted) { persistent_script 1571 ext/opcache/ZendAccelerator.c if (persistent_script && persistent_script->corrupted) { persistent_script 1572 ext/opcache/ZendAccelerator.c persistent_script = NULL; persistent_script 1578 ext/opcache/ZendAccelerator.c if (persistent_script && ZCG(accel_directives).validate_timestamps) { persistent_script 1579 ext/opcache/ZendAccelerator.c if (validate_timestamp_and_record(persistent_script, file_handle TSRMLS_CC) == FAILURE) { persistent_script 1581 ext/opcache/ZendAccelerator.c if (!persistent_script->corrupted) { persistent_script 1582 ext/opcache/ZendAccelerator.c persistent_script->corrupted = 1; persistent_script 1583 ext/opcache/ZendAccelerator.c persistent_script->timestamp = 0; persistent_script 1584 ext/opcache/ZendAccelerator.c ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption; persistent_script 1592 ext/opcache/ZendAccelerator.c persistent_script = NULL; persistent_script 1597 ext/opcache/ZendAccelerator.c if (persistent_script && ZCG(accel_directives).consistency_checks persistent_script 1598 ext/opcache/ZendAccelerator.c && persistent_script->dynamic_members.hits % ZCG(accel_directives).consistency_checks == 0) { persistent_script 1600 ext/opcache/ZendAccelerator.c unsigned int checksum = zend_accel_script_checksum(persistent_script); persistent_script 1601 ext/opcache/ZendAccelerator.c if (checksum != persistent_script->dynamic_members.checksum ) { persistent_script 1604 ext/opcache/ZendAccelerator.c persistent_script->full_path, persistent_script->dynamic_members.checksum, checksum); persistent_script 1606 ext/opcache/ZendAccelerator.c if (!persistent_script->corrupted) { persistent_script 1607 ext/opcache/ZendAccelerator.c persistent_script->corrupted = 1; persistent_script 1608 ext/opcache/ZendAccelerator.c persistent_script->timestamp = 0; persistent_script 1609 ext/opcache/ZendAccelerator.c ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption; persistent_script 1617 ext/opcache/ZendAccelerator.c persistent_script = NULL; persistent_script 1622 ext/opcache/ZendAccelerator.c if (!persistent_script) { persistent_script 1638 ext/opcache/ZendAccelerator.c persistent_script = compile_and_cache_file(file_handle, type, key, key_length, &op_array, &from_shared_memory TSRMLS_CC); persistent_script 1643 ext/opcache/ZendAccelerator.c if (!persistent_script) { persistent_script 1651 ext/opcache/ZendAccelerator.c persistent_script->dynamic_members.hits++; /* see above */ persistent_script 1654 ext/opcache/ZendAccelerator.c InterlockedIncrement(&persistent_script->dynamic_members.hits); persistent_script 1658 ext/opcache/ZendAccelerator.c if (persistent_script->full_path) { persistent_script 1670 ext/opcache/ZendAccelerator.c if (zend_hash_quick_add(&EG(included_files), persistent_script->full_path, persistent_script->full_path_len + 1, persistent_script->hash_value, &dummy, sizeof(void *), NULL) == SUCCESS) { persistent_script 1672 ext/opcache/ZendAccelerator.c if (strstr(persistent_script->full_path, ".phar") && !strstr(persistent_script->full_path, "://")) { persistent_script 1674 ext/opcache/ZendAccelerator.c char *fname = emalloc(sizeof("phar://") + persistent_script->full_path_len); persistent_script 1677 ext/opcache/ZendAccelerator.c memcpy(fname + sizeof("phar://") - 1, persistent_script->full_path, persistent_script->full_path_len + 1); persistent_script 1692 ext/opcache/ZendAccelerator.c persistent_script->dynamic_members.last_used = ZCG(request_time); persistent_script 1697 ext/opcache/ZendAccelerator.c if (persistent_script->ping_auto_globals_mask) { persistent_script 1698 ext/opcache/ZendAccelerator.c zend_accel_set_auto_globals(persistent_script->ping_auto_globals_mask TSRMLS_CC); persistent_script 1701 ext/opcache/ZendAccelerator.c return zend_accel_load_script(persistent_script, from_shared_memory TSRMLS_CC); persistent_script 1854 ext/opcache/ZendAccelerator.c zend_persistent_script *persistent_script; persistent_script 1868 ext/opcache/ZendAccelerator.c (persistent_script = zend_accel_hash_find(&ZCSG(hash), (char*)filename, filename_len + 1)) != NULL && persistent_script 1869 ext/opcache/ZendAccelerator.c !persistent_script->corrupted) { persistent_script 1871 ext/opcache/ZendAccelerator.c handle->opened_path = estrndup(persistent_script->full_path, persistent_script->full_path_len); persistent_script 1873 ext/opcache/ZendAccelerator.c memcpy(ZCG(key), persistent_script->full_path, persistent_script->full_path_len + 1); persistent_script 1874 ext/opcache/ZendAccelerator.c ZCG(key_len) = persistent_script->full_path_len; persistent_script 1876 ext/opcache/ZendAccelerator.c ZCG(cache_persistent_script) = persistent_script; persistent_script 1884 ext/opcache/ZendAccelerator.c (persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1)) != NULL && persistent_script 1885 ext/opcache/ZendAccelerator.c !persistent_script->corrupted) { persistent_script 1887 ext/opcache/ZendAccelerator.c handle->opened_path = estrndup(persistent_script->full_path, persistent_script->full_path_len); persistent_script 1890 ext/opcache/ZendAccelerator.c ZCG(cache_persistent_script) = persistent_script; persistent_script 1901 ext/opcache/ZendAccelerator.c persistent_script = (zend_persistent_script *)bucket->data; persistent_script 1902 ext/opcache/ZendAccelerator.c if (persistent_script && !persistent_script->corrupted) { persistent_script 1914 ext/opcache/ZendAccelerator.c ZCG(cache_persistent_script) = persistent_script; persistent_script 1954 ext/opcache/ZendAccelerator.c zend_persistent_script *persistent_script; persistent_script 1965 ext/opcache/ZendAccelerator.c persistent_script = ZCG(cache_persistent_script); persistent_script 1966 ext/opcache/ZendAccelerator.c handle->opened_path = estrndup(persistent_script->full_path, persistent_script->full_path_len); persistent_script 1976 ext/opcache/ZendAccelerator.c (persistent_script = zend_accel_hash_find(&ZCSG(hash), (char*)filename, filename_len + 1)) != NULL && persistent_script 1977 ext/opcache/ZendAccelerator.c !persistent_script->corrupted) { persistent_script 1979 ext/opcache/ZendAccelerator.c handle->opened_path = estrndup(persistent_script->full_path, persistent_script->full_path_len); persistent_script 1981 ext/opcache/ZendAccelerator.c memcpy(ZCG(key), persistent_script->full_path, persistent_script->full_path_len + 1); persistent_script 1982 ext/opcache/ZendAccelerator.c ZCG(key_len) = persistent_script->full_path_len; persistent_script 1984 ext/opcache/ZendAccelerator.c ZCG(cache_persistent_script) = EG(opline_ptr) ? persistent_script : NULL; persistent_script 2024 ext/opcache/ZendAccelerator.c zend_persistent_script *persistent_script; persistent_script 2030 ext/opcache/ZendAccelerator.c persistent_script = (zend_persistent_script *)bucket->data; persistent_script 2031 ext/opcache/ZendAccelerator.c if (persistent_script && !persistent_script->corrupted) { persistent_script 2032 ext/opcache/ZendAccelerator.c memcpy(ZCG(key), persistent_script->full_path, persistent_script->full_path_len + 1); persistent_script 2033 ext/opcache/ZendAccelerator.c ZCG(key_len) = persistent_script->full_path_len; persistent_script 2035 ext/opcache/ZendAccelerator.c ZCG(cache_persistent_script) = persistent_script; persistent_script 2036 ext/opcache/ZendAccelerator.c return estrndup(persistent_script->full_path, persistent_script->full_path_len); persistent_script 2047 ext/opcache/ZendAccelerator.c (persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1)) != NULL && persistent_script 2048 ext/opcache/ZendAccelerator.c !persistent_script->corrupted) { persistent_script 2052 ext/opcache/ZendAccelerator.c ZCG(cache_persistent_script) = persistent_script; persistent_script 2053 ext/opcache/ZendAccelerator.c return estrndup(persistent_script->full_path, persistent_script->full_path_len); persistent_script 2062 ext/opcache/ZendAccelerator.c persistent_script = (zend_persistent_script *)bucket->data; persistent_script 2064 ext/opcache/ZendAccelerator.c if (persistent_script && !persistent_script->corrupted) { persistent_script 2074 ext/opcache/ZendAccelerator.c ZCG(cache_persistent_script) = key ? persistent_script : NULL; persistent_script 334 ext/opcache/ZendAccelerator.h int validate_timestamp_and_record(zend_persistent_script *persistent_script, zend_file_handle *file_handle TSRMLS_DC); persistent_script 336 ext/opcache/ZendAccelerator.h int zend_accel_script_optimize(zend_persistent_script *persistent_script TSRMLS_DC); persistent_script 318 ext/opcache/zend_accelerator_module.c zend_persistent_script *persistent_script; persistent_script 324 ext/opcache/zend_accelerator_module.c persistent_script = zend_accel_hash_find(&ZCSG(hash), filename, filename_len + 1); persistent_script 325 ext/opcache/zend_accelerator_module.c if (persistent_script) { persistent_script 326 ext/opcache/zend_accelerator_module.c return !persistent_script->corrupted && persistent_script 328 ext/opcache/zend_accelerator_module.c validate_timestamp_and_record(persistent_script, &handle TSRMLS_CC) == SUCCESS); persistent_script 333 ext/opcache/zend_accelerator_module.c persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1); persistent_script 334 ext/opcache/zend_accelerator_module.c return persistent_script && !persistent_script->corrupted && persistent_script 336 ext/opcache/zend_accelerator_module.c validate_timestamp_and_record(persistent_script, &handle TSRMLS_CC) == SUCCESS); persistent_script 76 ext/opcache/zend_accelerator_util_funcs.c zend_persistent_script *persistent_script = (zend_persistent_script *) emalloc(sizeof(zend_persistent_script)); persistent_script 77 ext/opcache/zend_accelerator_util_funcs.c memset(persistent_script, 0, sizeof(zend_persistent_script)); persistent_script 79 ext/opcache/zend_accelerator_util_funcs.c zend_hash_init(&persistent_script->function_table, 100, NULL, (dtor_func_t) zend_accel_destroy_zend_function, 0); persistent_script 84 ext/opcache/zend_accelerator_util_funcs.c zend_hash_init(&persistent_script->class_table, 10, NULL, ZEND_CLASS_DTOR, 0); persistent_script 86 ext/opcache/zend_accelerator_util_funcs.c return persistent_script; persistent_script 130 ext/opcache/zend_accelerator_util_funcs.c int compact_persistent_script(zend_persistent_script *persistent_script) persistent_script 132 ext/opcache/zend_accelerator_util_funcs.c return compact_hash_table(&persistent_script->function_table) && persistent_script 133 ext/opcache/zend_accelerator_util_funcs.c compact_hash_table(&persistent_script->class_table); persistent_script 136 ext/opcache/zend_accelerator_util_funcs.c void free_persistent_script(zend_persistent_script *persistent_script, int destroy_elements) persistent_script 139 ext/opcache/zend_accelerator_util_funcs.c persistent_script->function_table.pDestructor = (dtor_func_t)zend_accel_destroy_zend_function; persistent_script 140 ext/opcache/zend_accelerator_util_funcs.c persistent_script->class_table.pDestructor = (dtor_func_t)zend_accel_destroy_zend_class; persistent_script 142 ext/opcache/zend_accelerator_util_funcs.c persistent_script->function_table.pDestructor = NULL; persistent_script 143 ext/opcache/zend_accelerator_util_funcs.c persistent_script->class_table.pDestructor = NULL; persistent_script 146 ext/opcache/zend_accelerator_util_funcs.c zend_hash_destroy(&persistent_script->function_table); persistent_script 147 ext/opcache/zend_accelerator_util_funcs.c zend_hash_destroy(&persistent_script->class_table); persistent_script 149 ext/opcache/zend_accelerator_util_funcs.c if (persistent_script->full_path) { persistent_script 150 ext/opcache/zend_accelerator_util_funcs.c efree(persistent_script->full_path); persistent_script 153 ext/opcache/zend_accelerator_util_funcs.c efree(persistent_script); persistent_script 998 ext/opcache/zend_accelerator_util_funcs.c zend_op_array* zend_accel_load_script(zend_persistent_script *persistent_script, int from_shared_memory TSRMLS_DC) persistent_script 1003 ext/opcache/zend_accelerator_util_funcs.c *op_array = persistent_script->main_op_array; persistent_script 1007 ext/opcache/zend_accelerator_util_funcs.c if (zend_hash_num_elements(&persistent_script->class_table) > 0) { persistent_script 1009 ext/opcache/zend_accelerator_util_funcs.c zend_accel_class_hash_copy(CG(class_table), &persistent_script->class_table, (unique_copy_ctor_func_t) zend_class_copy_ctor TSRMLS_CC); persistent_script 1014 ext/opcache/zend_accelerator_util_funcs.c if (zend_hash_num_elements(&persistent_script->function_table) > 0) { persistent_script 1015 ext/opcache/zend_accelerator_util_funcs.c zend_accel_function_hash_copy(CG(function_table), &persistent_script->function_table, (unique_copy_ctor_func_t)zend_prepare_function_for_execution); persistent_script 1021 ext/opcache/zend_accelerator_util_funcs.c if (persistent_script->compiler_halt_offset != 0 && persistent_script 1022 ext/opcache/zend_accelerator_util_funcs.c persistent_script->full_path) { persistent_script 1027 ext/opcache/zend_accelerator_util_funcs.c cfilename = persistent_script->full_path; persistent_script 1031 ext/opcache/zend_accelerator_util_funcs.c zend_register_long_constant(name, len + 1, persistent_script->compiler_halt_offset, CONST_CS, 0 TSRMLS_CC); persistent_script 1037 ext/opcache/zend_accelerator_util_funcs.c if ((int)persistent_script->early_binding != -1) { persistent_script 1038 ext/opcache/zend_accelerator_util_funcs.c zend_do_delayed_early_binding(op_array, persistent_script->early_binding TSRMLS_CC); persistent_script 1043 ext/opcache/zend_accelerator_util_funcs.c if (zend_hash_num_elements(&persistent_script->function_table) > 0) { persistent_script 1044 ext/opcache/zend_accelerator_util_funcs.c zend_accel_function_hash_copy(CG(function_table), &persistent_script->function_table, NULL); persistent_script 1046 ext/opcache/zend_accelerator_util_funcs.c if (zend_hash_num_elements(&persistent_script->class_table) > 0) { persistent_script 1047 ext/opcache/zend_accelerator_util_funcs.c zend_accel_class_hash_copy(CG(class_table), &persistent_script->class_table, NULL TSRMLS_CC); persistent_script 1054 ext/opcache/zend_accelerator_util_funcs.c CG(compiled_filename) = persistent_script->full_path; persistent_script 1061 ext/opcache/zend_accelerator_util_funcs.c free_persistent_script(persistent_script, 0); /* free only hashes */ persistent_script 32 ext/opcache/zend_accelerator_util_funcs.h void free_persistent_script(zend_persistent_script *persistent_script, int destroy_elements); persistent_script 37 ext/opcache/zend_accelerator_util_funcs.h zend_op_array* zend_accel_load_script(zend_persistent_script *persistent_script, int from_shared_memory TSRMLS_DC);