in prod/native/libphpbridge/code/OpCache.cpp [40:51]
bool PhpBridge::detectOpcachePreload() const {
if (!isOpcacheEnabled()) {
return false;
}
const char *preloadValue = INI_STR("opcache.preload");
if (!preloadValue || strlen(preloadValue) == 0) {
return false;
}
return sapi_module.activate == nullptr && sapi_module.deactivate == nullptr && sapi_module.register_server_variables == nullptr && sapi_module.getenv == nullptr; // EG(error_reporting) == 0 is null only in request init scope
}