Skip to content

opcache: add ephpm to the allow list#22737

Open
luthermonson wants to merge 1 commit into
php:PHP-8.4from
luthermonson:upstream/opcache-ephpm-sapi
Open

opcache: add ephpm to the allow list#22737
luthermonson wants to merge 1 commit into
php:PHP-8.4from
luthermonson:upstream/opcache-ephpm-sapi

Conversation

@luthermonson

Copy link
Copy Markdown
Contributor

ePHPm is an embed-based PHP application server — it sets sapi_module.name = "ephpm" before php_embed_init(), so OPcache's supported_sapis allow list doesn't recognize it and silently refuses to start.

Same situation and same one-line fix as frankenphp (#9755) and ngx-php (#11013).

The allow list was removed in 8.5, so this only targets PHP-8.4.

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#9755) and
ngx-php (php#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant