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

Method transitionToNewHandler

phpthread.go:159–165  ·  view source on GitHub ↗

transition to a new handler safely is triggered by setHandler and executed on the PHP thread

()

Source from the content-addressed store, hash-verified

157// transition to a new handler safely
158// is triggered by setHandler and executed on the PHP thread
159func (thread *phpThread) transitionToNewHandler() string {
160 thread.state.Set(state.TransitionInProgress)
161 thread.state.WaitFor(state.TransitionComplete)
162
163 // execute beforeScriptExecution of the new handler
164 return thread.handler.beforeScriptExecution()
165}
166
167func (thread *phpThread) frankenPHPContext() *frankenPHPContext {
168 return thread.handler.frankenPHPContext()

Callers 4

beforeScriptExecutionMethod · 0.80
beforeScriptExecutionMethod · 0.80
beforeScriptExecutionMethod · 0.80
beforeScriptExecutionMethod · 0.80

Calls 3

SetMethod · 0.80
WaitForMethod · 0.80
beforeScriptExecutionMethod · 0.65

Tested by 1

beforeScriptExecutionMethod · 0.64