in prod/native/libcommon/code/PhpSapi.h [63:91]
Type parseSapi(std::string_view sapiName) {
if (sapiName == "cli") {
return Type::CLI;
} else if (sapiName == "cli-server") {
return Type::CLI_SERVER;
} else if (sapiName == "cgi") {
return Type::CGI;
} else if (sapiName == "cgi-fcgi") {
return Type::CGI_FCGI;
} else if (sapiName == "fpm-fcgi") {
return Type::FPM;
} else if (sapiName == "apache2handler") {
return Type::Apache;
} else if (sapiName == "litespeed") {
return Type::LITESPEED;
} else if (sapiName == "phpdbg") {
return Type::PHPDBG;
} else if (sapiName == "embed") {
return Type::EMBED;
} else if (sapiName == "fuzzer") {
return Type::FUZZER;
} else if (sapiName == "uwsgi") {
return Type::UWSGI;
} else if (sapiName == "frankenphp") {
return Type::FRANKENPHP;
} else {
return Type::UNKNOWN;
}
}