From a62ee67e4ce7664b6321ae3490ece3fab1520552 Mon Sep 17 00:00:00 2001 From: Luther Monson Date: Tue, 14 Jul 2026 18:32:00 -0700 Subject: [PATCH] opcache: add ePHPm to the allow list ePHPm is an embed-SAPI-based PHP application server written in Rust (https://github.com/ephpm/ephpm). It registers its SAPI under the name "ephpm", so OPcache refuses to start because the name is not in supported_sapis[], the same situation FrankenPHP (php/php-src#9755) and ngx-php (php/php-src#11013) hit before being added to the list. PHP 8.5 removed the SAPI allow list entirely, so this is only needed on the PHP-8.4 branch. --- ext/opcache/ZendAccelerator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index a2d964c15070..75565bb71d56 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -2842,6 +2842,7 @@ static inline zend_result accel_find_sapi(void) "fuzzer", "frankenphp", "ngx-php", + "ephpm", NULL }; const char **sapi_name;