From b0e32bc015f8eb146e745b7184549e15c6657f85 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Fri, 7 May 2021 07:46:25 +0300 Subject: 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. --- docs/changes.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') 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. + + +a segmentation fault might have occurred in the PHP module if +fastcgi_finish_request() was used with the "auto_globals_jit" option enabled. + + + -- cgit