diff options
author | Valentin Bartenev <vbart@nginx.com> | 2021-05-07 07:46:25 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2021-05-07 07:46:25 +0300 |
commit | b0e32bc015f8eb146e745b7184549e15c6657f85 (patch) | |
tree | d6e68c130558c35a77fcb35979f707ff0d020a72 /docs | |
parent | 6703b68ed00e7cc8132c0aaf3049ed30889de8a8 (diff) | |
download | unit-b0e32bc015f8eb146e745b7184549e15c6657f85.tar.gz unit-b0e32bc015f8eb146e745b7184549e15c6657f85.tar.bz2 |
PHP: forced initialization of $_SERVER in fastcgi_finish_request().
The "auto_globals_jit" PHP option postponed the initialization of the $_SERVER
global variable until the script using it had been loaded (e. g. via the
"include" expression). As a result, nxt_php_register_variables() could be
called after fastcgi_finish_request() had finished the request and nulled
ctx->req, which thus caused a segmentation fault.
Diffstat (limited to '')
-rw-r--r-- | docs/changes.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/changes.xml b/docs/changes.xml index 3d4fc698..e2cb4f1d 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -44,6 +44,13 @@ points on a per-request basis during static file serving. </para> </change> +<change type="bugfix"> +<para> +a segmentation fault might have occurred in the PHP module if +fastcgi_finish_request() was used with the "auto_globals_jit" option enabled. +</para> +</change> + </changes> |