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

Function go_frankenphp_before_script_execution

phpthread.go:214–225  ·  view source on GitHub ↗

export go_frankenphp_before_script_execution

(threadIndex C.uintptr_t)

Source from the content-addressed store, hash-verified

212
213//export go_frankenphp_before_script_execution
214func go_frankenphp_before_script_execution(threadIndex C.uintptr_t) *C.char {
215 thread := phpThreads[threadIndex]
216 scriptName := thread.handler.beforeScriptExecution()
217
218 // if no scriptName is passed, shut down
219 if scriptName == "" {
220 return nil
221 }
222
223 // return the name of the PHP script that should be executed
224 return thread.pinCString(scriptName)
225}
226
227//export go_frankenphp_after_script_execution
228func go_frankenphp_after_script_execution(threadIndex C.uintptr_t, exitStatus C.int) {

Callers

nothing calls this directly

Calls 2

pinCStringMethod · 0.80
beforeScriptExecutionMethod · 0.65

Tested by

no test coverage detected