Expand description
ZTS worker threads โ each thread runs an independent PHP context.
A worker thread:
- Registers with TSRM via
ZtsThreadGuard - Starts a PHP request (
request_startup) - Executes the PHP worker script (which registers handlers)
- Enters the recv/send loop via
bridge::do_recv()/bridge::do_send() - Cleans up on exit
Functionsยง
- spawn_
zts_ worker - Spawn a ZTS worker thread that executes the given PHP script.