We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 929819a commit d79b82dCopy full SHA for d79b82d
ext/opcache/ZendAccelerator.c
@@ -2941,11 +2941,18 @@ void accel_shutdown(void)
2941
2942
void zend_accel_schedule_restart(zend_accel_restart_reason reason)
2943
{
2944
+ const char *zend_accel_restart_reason_text[ACCEL_RESTART_USER + 1] = {
2945
+ "out of memory",
2946
+ "hash overflow",
2947
+ "user",
2948
+ };
2949
+
2950
if (ZCSG(restart_pending)) {
2951
/* don't schedule twice */
2952
return;
2953
}
- zend_accel_error(ACCEL_LOG_DEBUG, "Restart Scheduled!");
2954
+ zend_accel_error(ACCEL_LOG_DEBUG, "Restart Scheduled! Reason: %s",
2955
+ zend_accel_restart_reason_text[reason]);
2956
2957
HANDLE_BLOCK_INTERRUPTIONS();
2958
SHM_UNPROTECT();
0 commit comments