summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--ext/opcache/ZendAccelerator.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 75380b02d4..2d354998c3 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,9 @@ PHP NEWS
. Fixed bug #65088 (Generated configure script is malformed on OpenBSD).
(Adam)
+OPcache
+ . OPcache must be compatible with LiteSpeed SAPI (Dmitry)
+
- CLI server:
. Fixed bug #65066 (Cli server not responsive when responding with 422 http
status code). (Adam)
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 875a4727a8..4d983976bb 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -2375,6 +2375,7 @@ static inline int accel_find_sapi(TSRMLS_D)
"isapi",
"apache2filter",
"apache2handler",
+ "litespeed",
NULL
};
const char **sapi_name;
@@ -2499,7 +2500,7 @@ static int accel_startup(zend_extension *extension)
strcmp(sapi_module.name, "cli") == 0) {
zps_startup_failure("Opcode Caching is disabled for CLI", NULL, accelerator_remove_cb TSRMLS_CC);
} else {
- zps_startup_failure("Opcode Caching is only supported in Apache, ISAPI, FPM and FastCGI SAPIs", NULL, accelerator_remove_cb TSRMLS_CC);
+ zps_startup_failure("Opcode Caching is only supported in Apache, ISAPI, FPM, FastCGI and LiteSpeed SAPIs", NULL, accelerator_remove_cb TSRMLS_CC);
}
return SUCCESS;
}