summaryrefslogtreecommitdiff
path: root/ext/opcache/ZendAccelerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/ZendAccelerator.h')
-rw-r--r--ext/opcache/ZendAccelerator.h46
1 files changed, 25 insertions, 21 deletions
diff --git a/ext/opcache/ZendAccelerator.h b/ext/opcache/ZendAccelerator.h
index 94c467e5fb..c3c7285c48 100644
--- a/ext/opcache/ZendAccelerator.h
+++ b/ext/opcache/ZendAccelerator.h
@@ -157,7 +157,7 @@ typedef struct _zend_persistent_script {
zend_op_array main_op_array;
HashTable function_table;
HashTable class_table;
- long compiler_halt_offset; /* position of __HALT_COMPILER or -1 */
+ zend_long compiler_halt_offset; /* position of __HALT_COMPILER or -1 */
int ping_auto_globals_mask; /* which autoglobals are used by the script */
accel_time_t timestamp; /* the script modification time */
zend_bool corrupted;
@@ -170,7 +170,11 @@ typedef struct _zend_persistent_script {
*/
struct zend_persistent_script_dynamic_members {
time_t last_used;
- ulong hits;
+#ifdef ZEND_WIN32
+ LONGLONG hits;
+#else
+ zend_ulong hits;
+#endif
unsigned int memory_consumption;
unsigned int checksum;
time_t revalidate;
@@ -178,12 +182,12 @@ typedef struct _zend_persistent_script {
} zend_persistent_script;
typedef struct _zend_accel_directives {
- long memory_consumption;
- long max_accelerated_files;
+ zend_long memory_consumption;
+ zend_long max_accelerated_files;
double max_wasted_percentage;
char *user_blacklist_filename;
- long consistency_checks;
- long force_restart_timeout;
+ zend_long consistency_checks;
+ zend_long force_restart_timeout;
zend_bool use_cwd;
zend_bool ignore_dups;
zend_bool validate_timestamps;
@@ -195,18 +199,18 @@ typedef struct _zend_accel_directives {
zend_bool file_override_enabled;
zend_bool inherited_hack;
zend_bool enable_cli;
- unsigned long revalidate_freq;
- unsigned long file_update_protection;
+ zend_ulong revalidate_freq;
+ zend_ulong file_update_protection;
char *error_log;
#ifdef ZEND_WIN32
char *mmap_base;
#endif
char *memory_model;
- long log_verbosity_level;
+ zend_long log_verbosity_level;
- long optimization_level;
- long max_file_size;
- long interned_strings_buffer;
+ zend_long optimization_level;
+ zend_long max_file_size;
+ zend_long interned_strings_buffer;
char *restrict_api;
} zend_accel_directives;
@@ -231,7 +235,7 @@ typedef struct _zend_accel_globals {
/* preallocated shared-memory block to save current script */
void *mem;
/* cache to save hash lookup on the same INCLUDE opcode */
- zend_op *cache_opline;
+ const zend_op *cache_opline;
zend_persistent_script *cache_persistent_script;
/* preallocated buffer for keys */
int key_len;
@@ -240,12 +244,12 @@ typedef struct _zend_accel_globals {
typedef struct _zend_accel_shared_globals {
/* Cache Data Structures */
- unsigned long hits;
- unsigned long misses;
- unsigned long blacklist_misses;
- unsigned long oom_restarts; /* number of restarts because of out of memory */
- unsigned long hash_restarts; /* number of restarts because of hash overflow */
- unsigned long manual_restarts; /* number of restarts scheduled by opcache_reset() */
+ zend_ulong hits;
+ zend_ulong misses;
+ zend_ulong blacklist_misses;
+ zend_ulong oom_restarts; /* number of restarts because of out of memory */
+ zend_ulong hash_restarts; /* number of restarts because of hash overflow */
+ zend_ulong manual_restarts; /* number of restarts scheduled by opcache_reset() */
zend_accel_hash hash; /* hash table for cached scripts */
zend_accel_hash include_paths; /* used "include_path" values */
@@ -258,8 +262,8 @@ typedef struct _zend_accel_shared_globals {
zend_accel_restart_reason restart_reason;
zend_bool cache_status_before_restart;
#ifdef ZEND_WIN32
- unsigned long mem_usage;
- unsigned long restart_in;
+ LONGLONG mem_usage;
+ LONGLONG restart_in;
#endif
zend_bool restart_in_progress;
time_t revalidate_at;