From 3185e6d665048f7861cd9e51206e95fd2dfa39c2 Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 4 Apr 2023 14:55:26 +0200 Subject: [PATCH] Add ngx-php to opcache supported sapis Now we are using the cli-server. But it's time to use our name in the SAPI. This SAPI embed PHP in Nginx server. https://github.com/rryqszq4/ngx-php And in the Techempower benchmarks, it's the fastest PHP SAPI. https://www.techempower.com/benchmarks/#section=data-r20 Thank you. --- ext/opcache/ZendAccelerator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 9b64eb382c68..35aa00516b35 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -2828,6 +2828,7 @@ static inline zend_result accel_find_sapi(void) "uwsgi", "fuzzer", "frankenphp", + "ngx-php", NULL }; const char **sapi_name;