Re: [RFC] Request lifecycle hooks for SAPIs with a worker mode

From: Date: Wed, 11 Nov 2026 11:04:24 +0000
Subject: Re: [RFC] Request lifecycle hooks for SAPIs with a worker mode
References: 1 2 3  Groups: php.internals php.internals 
Request: Send a blank email to internals+get-133069@lists.php.net to get a copy of this message
Hey Kévin, Thanks, could this be documented in the RFC, because from how I read it, it shows the RBEGIN -> REND pairs inside the loop. It does not show the initial RINIT -> REND or final RBEGIN -> RSHUTDOWN transitions. That should be made explicit in the RFC, basically just the lifecycle you wrote about in your email. Another SAPI with worker mode could interpret the RFC as RINIT -> (RBEGIN -> REND) -> RSHUTDOWN. Otherwise, I like that we could have an explicit hook to detect requests handled inside a worker! Kind regards Florian

« previous php.internals (#133069) next »