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 aaaef22 commit a4accc0Copy full SHA for a4accc0
ext/opcache/ZendAccelerator.c
@@ -2921,11 +2921,18 @@ void accel_shutdown(void)
2921
2922
void zend_accel_schedule_restart(zend_accel_restart_reason reason)
2923
{
2924
+ const char *zend_accel_restart_reason_text[ACCEL_RESTART_USER + 1] = {
2925
+ "out of memory",
2926
+ "hash overflow",
2927
+ "user",
2928
+ };
2929
+
2930
if (ZCSG(restart_pending)) {
2931
/* don't schedule twice */
2932
return;
2933
}
- zend_accel_error(ACCEL_LOG_DEBUG, "Restart Scheduled!");
2934
+ zend_accel_error(ACCEL_LOG_DEBUG, "Restart Scheduled! Reason: %s",
2935
+ zend_accel_restart_reason_text[reason]);
2936
2937
SHM_UNPROTECT();
2938
ZCSG(restart_pending) = 1;
0 commit comments