transition to a new handler safely is triggered by setHandler and executed on the PHP thread
()
| 157 | // transition to a new handler safely |
| 158 | // is triggered by setHandler and executed on the PHP thread |
| 159 | func (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 | |
| 167 | func (thread *phpThread) frankenPHPContext() *frankenPHPContext { |
| 168 | return thread.handler.frankenPHPContext() |