diff options
author | Valentin Bartenev <vbart@nginx.com> | 2021-11-25 19:58:54 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2021-11-25 19:58:54 +0300 |
commit | f8237911d723ed1c8db0e4e5b75e1126b94f798a (patch) | |
tree | bb26ca99bfabd562e6b54ea41894a3865d51c684 /docs/changes.xml | |
parent | 42e2105282cbfaf898d3f9b0eac7b288cc24cba1 (diff) | |
download | unit-f8237911d723ed1c8db0e4e5b75e1126b94f798a.tar.gz unit-f8237911d723ed1c8db0e4e5b75e1126b94f798a.tar.bz2 |
PHP: fixed crash when calling module functions in OPcache preload.
In PHP, custom fastcgi_finish_request() and overloaded chdir() functions can be
invoked by an OPcache preloading script (it runs when php_module_startup() is
called in the app process setup handler). In this case, there was no runtime
context set so trying to access it caused a segmentation fault.
This closes #602 issue on GitHub.
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 b3803ffe..1d4b9645 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -45,6 +45,13 @@ appeared in 1.26.0. </para> </change> +<change type="bugfix"> +<para> +a segmentation fault occurred in the PHP module if chdir() or +fastcgi_finish_request() was called in the OPcache preloading script. +</para> +</change> + </changes> |