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

Function Version

frankenphp.go:133–144  ·  view source on GitHub ↗

Version returns infos about the PHP version.

()

Source from the content-addressed store, hash-verified

131
132// Version returns infos about the PHP version.
133func Version() PHPVersion {
134 cVersion := C.frankenphp_get_version()
135
136 return PHPVersion{
137 int(cVersion.major_version),
138 int(cVersion.minor_version),
139 int(cVersion.release_version),
140 C.GoString(cVersion.extra_version),
141 C.GoString(cVersion.version),
142 int(cVersion.version_id),
143 }
144}
145
146func Config() PHPConfig {
147 cConfig := C.frankenphp_get_config()

Callers 4

TestVersionFunction · 0.92
testOpcachePreloadFunction · 0.92
ConfigFunction · 0.85
InitFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestVersionFunction · 0.74
testOpcachePreloadFunction · 0.74