@@ -802,7 +802,7 @@ static inline void kill_all_lockers(struct flock *mem_usage_check)
802
802
/* errno is not ESRCH or we ran out of tries to kill the locker */
803
803
ZCSG (force_restart_time ) = time (NULL ); /* restore forced restart request */
804
804
/* cannot kill the locker, bail out with error */
805
- zend_accel_error (ACCEL_LOG_ERROR , "Cannot kill process %d!" , mem_usage_check -> l_pid );
805
+ zend_accel_error_noreturn (ACCEL_LOG_ERROR , "Cannot kill process %d!" , mem_usage_check -> l_pid );
806
806
}
807
807
808
808
mem_usage_check -> l_type = F_WRLCK ;
@@ -2637,7 +2637,7 @@ static int zend_accel_init_shm(void)
2637
2637
accel_shared_globals = zend_shared_alloc (sizeof (zend_accel_shared_globals ));
2638
2638
}
2639
2639
if (!accel_shared_globals ) {
2640
- zend_accel_error (ACCEL_LOG_FATAL , "Insufficient shared memory!" );
2640
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Insufficient shared memory!" );
2641
2641
zend_shared_alloc_unlock ();
2642
2642
return FAILURE ;
2643
2643
}
@@ -2977,7 +2977,7 @@ static zend_result accel_post_startup(void)
2977
2977
page_size = getpagesize ();
2978
2978
# endif
2979
2979
if (!page_size || (page_size & (page_size - 1 ))) {
2980
- zend_accel_error (ACCEL_LOG_FATAL , "Failure to initialize shared memory structures - can't get page size." );
2980
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Failure to initialize shared memory structures - can't get page size." );
2981
2981
abort ();
2982
2982
}
2983
2983
jit_size = JIT_G (buffer_size );
@@ -2997,7 +2997,7 @@ static zend_result accel_post_startup(void)
2997
2997
break ;
2998
2998
case ALLOC_FAILURE :
2999
2999
accel_startup_ok = 0 ;
3000
- zend_accel_error (ACCEL_LOG_FATAL , "Failure to initialize shared memory structures - probably not enough shared memory." );
3000
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Failure to initialize shared memory structures - probably not enough shared memory." );
3001
3001
return SUCCESS ;
3002
3002
case SUCCESSFULLY_REATTACHED :
3003
3003
#if defined(HAVE_JIT ) && !defined(ZEND_WIN32 )
@@ -3010,7 +3010,7 @@ static zend_result accel_post_startup(void)
3010
3010
break ;
3011
3011
case FAILED_REATTACHED :
3012
3012
accel_startup_ok = 0 ;
3013
- zend_accel_error (ACCEL_LOG_FATAL , "Failure to initialize shared memory structures - can not reattach to exiting shared memory." );
3013
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Failure to initialize shared memory structures - can not reattach to exiting shared memory." );
3014
3014
return SUCCESS ;
3015
3015
break ;
3016
3016
#if ENABLE_FILE_CACHE_FALLBACK
@@ -3050,7 +3050,7 @@ static zend_result accel_post_startup(void)
3050
3050
SHM_PROTECT ();
3051
3051
} else if (!ZCG (accel_directives ).file_cache ) {
3052
3052
accel_startup_ok = 0 ;
3053
- zend_accel_error (ACCEL_LOG_FATAL , "opcache.file_cache_only is set without a proper setting of opcache.file_cache" );
3053
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "opcache.file_cache_only is set without a proper setting of opcache.file_cache" );
3054
3054
return SUCCESS ;
3055
3055
} else {
3056
3056
accel_shared_globals = calloc (1 , sizeof (zend_accel_shared_globals ));
@@ -4213,7 +4213,7 @@ static zend_persistent_script* preload_script_in_shared_memory(zend_persistent_s
4213
4213
uint32_t checkpoint ;
4214
4214
4215
4215
if (zend_accel_hash_is_full (& ZCSG (hash ))) {
4216
- zend_accel_error (ACCEL_LOG_FATAL , "Not enough entries in hash table for preloading. Consider increasing the value for the opcache.max_accelerated_files directive in php.ini." );
4216
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Not enough entries in hash table for preloading. Consider increasing the value for the opcache.max_accelerated_files directive in php.ini." );
4217
4217
return NULL ;
4218
4218
}
4219
4219
@@ -4265,7 +4265,7 @@ static zend_persistent_script* preload_script_in_shared_memory(zend_persistent_s
4265
4265
}
4266
4266
#endif
4267
4267
if (!ZCG (mem )) {
4268
- zend_accel_error (ACCEL_LOG_FATAL , "Not enough shared memory for preloading. Consider increasing the value for the opcache.memory_consumption directive in php.ini." );
4268
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Not enough shared memory for preloading. Consider increasing the value for the opcache.memory_consumption directive in php.ini." );
4269
4269
return NULL ;
4270
4270
}
4271
4271
@@ -4583,7 +4583,7 @@ static int accel_preload(const char *config, zend_bool in_child)
4583
4583
CG (map_ptr_last ) = orig_map_ptr_last ;
4584
4584
4585
4585
if (EG (full_tables_cleanup )) {
4586
- zend_accel_error (ACCEL_LOG_FATAL , "Preloading is not compatible with dl() function." );
4586
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Preloading is not compatible with dl() function." );
4587
4587
ret = FAILURE ;
4588
4588
goto finish ;
4589
4589
}
@@ -4666,7 +4666,7 @@ static int accel_preload(const char *config, zend_bool in_child)
4666
4666
zend_hash_sort_ex (& script -> script .class_table , preload_sort_classes , NULL , 0 );
4667
4667
4668
4668
if (preload_optimize (script ) != SUCCESS ) {
4669
- zend_accel_error (ACCEL_LOG_FATAL , "Optimization error during preloading!" );
4669
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Optimization error during preloading!" );
4670
4670
return FAILURE ;
4671
4671
}
4672
4672
@@ -4765,7 +4765,7 @@ static int accel_finish_startup(void)
4765
4765
4766
4766
if (ZCG (accel_directives ).preload && * ZCG (accel_directives ).preload ) {
4767
4767
#ifdef ZEND_WIN32
4768
- zend_accel_error (ACCEL_LOG_ERROR , "Preloading is not supported on Windows" );
4768
+ zend_accel_error_noreturn (ACCEL_LOG_ERROR , "Preloading is not supported on Windows" );
4769
4769
return FAILURE ;
4770
4770
#else
4771
4771
int in_child = 0 ;
@@ -4808,21 +4808,21 @@ static int accel_finish_startup(void)
4808
4808
if (!ZCG (accel_directives ).preload_user
4809
4809
|| !* ZCG (accel_directives ).preload_user ) {
4810
4810
zend_shared_alloc_unlock ();
4811
- zend_accel_error (ACCEL_LOG_FATAL , "\"opcache.preload_user\" has not been defined" );
4811
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "\"opcache.preload_user\" has not been defined" );
4812
4812
return FAILURE ;
4813
4813
}
4814
4814
4815
4815
pw = getpwnam (ZCG (accel_directives ).preload_user );
4816
4816
if (pw == NULL ) {
4817
4817
zend_shared_alloc_unlock ();
4818
- zend_accel_error (ACCEL_LOG_FATAL , "Preloading failed to getpwnam(\"%s\")" , ZCG (accel_directives ).preload_user );
4818
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Preloading failed to getpwnam(\"%s\")" , ZCG (accel_directives ).preload_user );
4819
4819
return FAILURE ;
4820
4820
}
4821
4821
4822
4822
pid = fork ();
4823
4823
if (pid == -1 ) {
4824
4824
zend_shared_alloc_unlock ();
4825
- zend_accel_error (ACCEL_LOG_FATAL , "Preloading failed to fork()" );
4825
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Preloading failed to fork()" );
4826
4826
return FAILURE ;
4827
4827
} else if (pid == 0 ) { /* children */
4828
4828
if (setgid (pw -> pw_gid ) < 0 ) {
@@ -4843,7 +4843,7 @@ static int accel_finish_startup(void)
4843
4843
4844
4844
if (waitpid (pid , & status , 0 ) < 0 ) {
4845
4845
zend_shared_alloc_unlock ();
4846
- zend_accel_error (ACCEL_LOG_FATAL , "Preloading failed to waitpid(%d)" , pid );
4846
+ zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Preloading failed to waitpid(%d)" , pid );
4847
4847
return FAILURE ;
4848
4848
}
4849
4849
0 commit comments