fix(worker): initialize _request in worker mode with auto_globals by xavierleune · Pull Request #2136 · php/frankenphp

Hi,

This PR fixes #1931, it handles $_REQUEST in worker mode correctly when auto_globals_jit is enabled (default configuration for PHP).
Some concerns were raised in the comments of the issue regarding performance. This implementation should make sure that request is created only if used.

However if a previous execution plan already used _REQUEST, all subsequent requests will create it. So the concern is "kindof" mitigated.

Let me know if you have any suggestion to improve this.