Bug #74088 [NEW]: PATH_INFO is not set using PHP-FPM and mod_proxy_fcgi
| From: | viktor at szepe dot net | Date: | Sun, 12 Feb 2017 19:20:55 +0000 |
| Subject: | Bug #74088 [NEW]: PATH_INFO is not set using PHP-FPM and mod_proxy_fcgi | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-207289@lists.php.net to get a copy of this message | ||
From: viktor at szepe dot net
Operating system: Debian
PHP version: 5.6.30
Package: FPM related
Bug Type: Bug
Bug description:PATH_INFO is not set using PHP-FPM and mod_proxy_fcgi
Description:
------------
mod_fastcgi used to set PATH_INFO properly.
I use mod_proxy_fcgi+FPM through a UDS:
<LocationMatch "^/.+\.php(/.+)?$">
ProxyPassMatch
"unix:///run/php5-fpm-${SITE_USER}.sock|fcgi://localhost${DOCUMENT_ROOT}"
</LocationMatch>
This does not set PATH_INFO.
I have to use the unreliable 'proxy-fcgi-pathinfo' as a word-around.
SetEnvIf Request_URI "^" proxy-fcgi-pathinfo=first-dot
Please consider setting PATH_INFO.
Thank you.
BTW It is ok on PHP 7.0.15
Test script:
---------------
// Navigate to test.php/path-info
var_dump(isset($_SERVER['PATH_INFO']));
--
Edit bug report at https://bugs.php.net/bug.php?id=74088&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74088&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74088&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74088&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74088&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74088&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74088&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74088&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74088&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74088&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74088&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74088&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74088&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74088&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74088&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74088&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74088&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74088&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74088&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74088&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74088&r=mysqlcfg