MCPcopy Create free account
hub / github.com/php/frankenphp / main

Function main

internal/testcli/main.go:10–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func main() {
11 if len(os.Args) <= 1 {
12 log.Println("Usage: testcli script.php")
13 os.Exit(1)
14 }
15
16 if len(os.Args) == 3 && os.Args[1] == "-r" {
17 os.Exit(frankenphp.ExecutePHPCode(os.Args[2]))
18 }
19
20 os.Exit(frankenphp.ExecuteScriptCLI(os.Args[1], os.Args))
21}

Callers

nothing calls this directly

Calls 2

ExecutePHPCodeFunction · 0.92
ExecuteScriptCLIFunction · 0.92

Tested by

no test coverage detected