Bug #65641 [Csd->ReO]: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache

From: Date: Mon, 30 Jun 2014 00:21:09 +0000
Subject: Bug #65641 [Csd->ReO]: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186381@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65641&edit=1 ID: 65641 Updated by: tyrael@php.net Reported by: ryotakatsuki at gmail dot com Summary: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache -Status: Closed +Status: Re-Opened Type: Bug Package: FPM related PHP Version: 5.5.3 Assigned To: tyrael Block user comment: N Private report: N New Comment: reopening as https://github.com/php/php-src/pull/694 only resolves this when using mod_proxy_handler. Previous Comments: ------------------------------------------------------------------------ [2014-06-29 23:04:37] tyrael@php.net The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. I've merged it into the PHP-5.6 branch, should be in RC2. ------------------------------------------------------------------------ [2014-05-31 11:16:28] dz at heroku dot com I can confirm this patch (I used fix_script_name_in_fpm_with_apace_fixed) fixes the issue as described. This is pretty critical for Apache 2.4 deployments with PHP-FPM; things are just broken otherwise... ------------------------------------------------------------------------ [2014-04-29 18:03:50] php at cizero dot de fix_script_name_in_fpm_with_apace_fixed worked for me with apache 5.5.11 - Unfortunately the new one which I tried first did not. Anyway... thanks for these patches ! ------------------------------------------------------------------------ [2014-04-29 14:23:37] rainer dot jung at kippdata dot de I attached a slightly different but functionally mostly equivalent patch. Both patches, the second version from the original reporter and my second version work for me. The patch should apply to PHP 5.4 - 5.6. Havent't tried 5.3. Thanks for considering. ------------------------------------------------------------------------ [2014-03-17 13:55:54] hp4everything at googlemail dot com sorry for some stupid questions of a newbie in this area: 1) how will a normal Linux user get your correction? Will it be included in official packages with an offical php-release? Or do I have to build the package mod-fpm myself and apply the patch somehow in the build-process?? 2) do you see any relation to the discussion in https://bbs.archlinux.org/viewtopic.php?id=178551 In this discussion progandy stated that the package mod_proxy_handler currently is a workaround till a bug in apache (probably 2.4.9) is corrected. He doesn't mention your patch. He obviously doesn't see this as mod-fpm problem. All this is very confusing to someone who only wants to use apache as php-enabled webserver. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65641 -- Edit this bug report at https://bugs.php.net/bug.php?id=65641&edit=1

« previous php.bugs (#186381) next »