()
| 178 | } |
| 179 | |
| 180 | func (thread *phpThread) name() string { |
| 181 | thread.handlerMu.RLock() |
| 182 | defer thread.handlerMu.RUnlock() |
| 183 | |
| 184 | if thread.handler == nil { |
| 185 | return "unknown" |
| 186 | } |
| 187 | |
| 188 | return thread.handler.name() |
| 189 | } |
| 190 | |
| 191 | // Pin a string that is not null-terminated |
| 192 | // PHP's zend_string may contain null-bytes |