(thread *phpThread, worker *worker)
| 30 | } |
| 31 | |
| 32 | func convertToWorkerThread(thread *phpThread, worker *worker) { |
| 33 | thread.setHandler(&workerThread{ |
| 34 | state: thread.state, |
| 35 | thread: thread, |
| 36 | worker: worker, |
| 37 | }) |
| 38 | worker.attachThread(thread) |
| 39 | } |
| 40 | |
| 41 | // beforeScriptExecution returns the name of the script or an empty string on shutdown |
| 42 | func (handler *workerThread) beforeScriptExecution() string { |