PHP - Manual: Win32Service Service Error Control Constants
2025-11-04
| Constant | Value | Description | 
|---|---|---|
WIN32_SERVICE_ERROR_IGNORE | 
      0x00000000 | The startup program ignores the error and continues the startup operation. | 
WIN32_SERVICE_ERROR_NORMAL | 
      0x00000001 | The startup program logs the error in the event log but continues the startup operation. | 
WIN32_SERVICE_ERROR_SEVERE | 
      0x00000002 | The startup program logs the error in the event log. If the last-known-good configuration is being started, the startup operation continues. Otherwise, the system is restarted with the last-known-good configuration. | 
WIN32_SERVICE_ERROR_CRITICAL | 
      0x00000003 | The startup program logs the error in the event log, if possible. If the last-known-good configuration is being started, the startup operation fails. Otherwise, the system is restarted with the last-known good configuration. | 
官方地址:https://www.php.net/manual/en/win32service.constants.errorcontrol.php