Skip to content

Commit ddbc74c

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Fix #71465: PHAR doesn't know about litespeed
2 parents 03547f6 + 7525e69 commit ddbc74c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/phar/phar_object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,8 @@ PHP_METHOD(Phar, webPhar)
608608

609609
if ((sapi_mod_name_len == sizeof("cgi-fcgi") - 1 && !strncmp(sapi_module.name, "cgi-fcgi", sizeof("cgi-fcgi") - 1))
610610
|| (sapi_mod_name_len == sizeof("fpm-fcgi") - 1 && !strncmp(sapi_module.name, "fpm-fcgi", sizeof("fpm-fcgi") - 1))
611-
|| (sapi_mod_name_len == sizeof("cgi") - 1 && !strncmp(sapi_module.name, "cgi", sizeof("cgi") - 1))) {
611+
|| (sapi_mod_name_len == sizeof("cgi") - 1 && !strncmp(sapi_module.name, "cgi", sizeof("cgi") - 1))
612+
|| (sapi_mod_name_len == sizeof("litespeed") - 1 && !strncmp(sapi_module.name, "litespeed", sizeof("litespeed") - 1))) {
612613

613614
if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) != IS_UNDEF) {
614615
HashTable *_server = Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]);

0 commit comments

Comments
 (0)