()
| 169 | } |
| 170 | |
| 171 | func (thread *phpThread) context() context.Context { |
| 172 | if thread.handler == nil { |
| 173 | // handler can be nil when using opcache.preload |
| 174 | return globalCtx |
| 175 | } |
| 176 | |
| 177 | return thread.handler.context() |
| 178 | } |
| 179 | |
| 180 | func (thread *phpThread) name() string { |
| 181 | thread.handlerMu.RLock() |