@@ -119,15 +119,15 @@ zend_bool fallback_process = 0; /* process uses file cache fallback */
119
119
#endif
120
120
121
121
static zend_op_array * (* accelerator_orig_compile_file )(zend_file_handle * file_handle , int type );
122
- static int (* accelerator_orig_zend_stream_open_function )(const char * filename , zend_file_handle * handle );
122
+ static ZEND_RESULT_CODE (* accelerator_orig_zend_stream_open_function )(const char * filename , zend_file_handle * handle );
123
123
static zend_string * (* accelerator_orig_zend_resolve_path )(const char * filename , size_t filename_len );
124
124
static void (* accelerator_orig_zend_error_cb )(int type , const char * error_filename , const uint32_t error_lineno , zend_string * message );
125
125
static zif_handler orig_chdir = NULL ;
126
126
static ZEND_INI_MH ((* orig_include_path_on_modify )) = NULL ;
127
- static int (* orig_post_startup_cb )(void );
127
+ static ZEND_RESULT_CODE (* orig_post_startup_cb )(void );
128
128
129
129
static void accel_gen_system_id (void );
130
- static int accel_post_startup (void );
130
+ static ZEND_RESULT_CODE accel_post_startup (void );
131
131
static int accel_finish_startup (void );
132
132
133
133
static void preload_shutdown (void );
@@ -304,7 +304,7 @@ static inline int accel_restart_is_active(void)
304
304
}
305
305
306
306
/* Creates a read lock for SHM access */
307
- static inline int accel_activate_add (void )
307
+ static inline ZEND_RESULT_CODE accel_activate_add (void )
308
308
{
309
309
#ifdef ZEND_WIN32
310
310
SHM_UNPROTECT ();
@@ -2269,7 +2269,7 @@ static int accel_gen_uname_id(void)
2269
2269
#endif
2270
2270
2271
2271
/* zend_stream_open_function() replacement for PHP 5.3 and above */
2272
- static int persistent_stream_open_function (const char * filename , zend_file_handle * handle )
2272
+ static ZEND_RESULT_CODE persistent_stream_open_function (const char * filename , zend_file_handle * handle )
2273
2273
{
2274
2274
if (ZCG (cache_persistent_script )) {
2275
2275
/* check if callback is called from include_once or it's a main request */
@@ -2400,7 +2400,7 @@ static void accel_reset_pcre_cache(void)
2400
2400
} ZEND_HASH_FOREACH_END ();
2401
2401
}
2402
2402
2403
- int accel_activate (INIT_FUNC_ARGS )
2403
+ ZEND_RESULT_CODE accel_activate (INIT_FUNC_ARGS )
2404
2404
{
2405
2405
if (!ZCG (enabled ) || !accel_startup_ok ) {
2406
2406
ZCG (accelerator_enabled ) = 0 ;
@@ -2963,13 +2963,13 @@ static int accel_startup(zend_extension *extension)
2963
2963
return SUCCESS ;
2964
2964
}
2965
2965
2966
- static int accel_post_startup (void )
2966
+ static ZEND_RESULT_CODE accel_post_startup (void )
2967
2967
{
2968
2968
zend_function * func ;
2969
2969
zend_ini_entry * ini_entry ;
2970
2970
2971
2971
if (orig_post_startup_cb ) {
2972
- int (* cb )(void ) = orig_post_startup_cb ;
2972
+ ZEND_RESULT_CODE (* cb )(void ) = orig_post_startup_cb ;
2973
2973
2974
2974
orig_post_startup_cb = NULL ;
2975
2975
if (cb () != SUCCESS ) {
@@ -4368,7 +4368,7 @@ static void preload_load(void)
4368
4368
}
4369
4369
}
4370
4370
4371
- static int preload_autoload (zend_string * filename )
4371
+ static ZEND_RESULT_CODE preload_autoload (zend_string * filename )
4372
4372
{
4373
4373
zend_persistent_script * persistent_script ;
4374
4374
zend_op_array * op_array ;
0 commit comments