|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesfpm-info-crash (last revision 2015-09-20 21:57 UTC by rainer dot jung at kippdata dot de)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-20 21:57 UTC] rainer dot jung at kippdata dot de
[2015-09-21 03:20 UTC] laruence@php.net
[2015-09-21 03:20 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2015-09-21 03:20 UTC] laruence@php.net
[2015-09-21 03:20 UTC] laruence@php.net
[2015-09-21 03:20 UTC] laruence@php.net
[2015-09-29 13:10 UTC] ab@php.net
[2015-09-29 13:10 UTC] ab@php.net
[2016-07-20 11:36 UTC] davey@php.net
[2016-07-20 11:36 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ Executing "php-fpm -i" crashes. This is due to the commit abb616ae which is a merge of the cgi commit 6bc16cce to fpm. The crash happens, because in sapi/fpm/fpm/fpm_main.c in function sapi_cgi_register_variables() the variable request is NULL in line char *path_info = FCGI_GETENV(request, "PATH_INFO"); Before the merge the line was char *path_info = sapi_cgibin_getenv("PATH_INFO", sizeof("PATH_INFO") - 1); and sapi_cgibin_getenv() falls back to simple getenv() if request is NULL (and also if fpm_is_running is not set. The original change in cgi should not have this problem, only the port to fpm can execute "phpinfo" without actually running a real request. I'll try if it is enough to simply change the one line back for a fix, or if the crash then moves to a later place in code and more work needs to be done. Test script: --------------- Run php-fpm -i