export go_frankenphp_before_script_execution
(threadIndex C.uintptr_t)
| 212 | |
| 213 | //export go_frankenphp_before_script_execution |
| 214 | func 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 |
| 228 | func go_frankenphp_after_script_execution(threadIndex C.uintptr_t, exitStatus C.int) { |
nothing calls this directly
no test coverage detected