mirror of https://github.com/php/php-src
Browse Source
In CGI, php_auto_globals_create_server() (i.e. auto_global_callback() here) initializes $_ENV to reuse for $_SERVER. However, because $_SERVER is constructed first, we have not yet initialized auto_global->armed of the $_ENV global. Split the loop into initialization and constructor phases. Fixes GH-19934 Closes GH-19870pull/20033/merge
3 changed files with 23 additions and 5 deletions
Loading…
Reference in new issue