MCPcopy Index your code
hub / github.com/php/frankenphp / Config

Function Config

frankenphp.go:146–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func Config() PHPConfig {
147 cConfig := C.frankenphp_get_config()
148
149 return PHPConfig{
150 Version: Version(),
151 ZTS: bool(cConfig.zts),
152 ZendSignals: bool(cConfig.zend_signals),
153 ZendMaxExecutionTimers: bool(cConfig.zend_max_execution_timers),
154 }
155}
156
157func calculateMaxThreads(opt *opt) (numWorkers int, _ error) {
158 maxProcs := runtime.GOMAXPROCS(0) * 2

Callers 1

InitFunction · 0.85

Calls 1

VersionFunction · 0.85

Tested by

no test coverage detected