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

From: Date: Mon, 30 Jun 2014 00:42:06 +0000
Subject: Bug #65641 [Com]: 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-186385@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 Comment by: dz at heroku dot com Reported by: ryotakatsuki at gmail dot com Summary: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache 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: https://bugs.php.net/bug.php?id=67541 is the related issue for the (now merged) PR Previous Comments: ------------------------------------------------------------------------ [2014-06-30 00:21:09] tyrael@php.net reopening as https://github.com/php/php-src/pull/694 only resolves this when using mod_proxy_handler. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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 (#186385) next »