Bug #81253 [NEW]: unexpected result of setting env[LC_MESSAGES] in php-fpm pool config
| From: | php at wb9 dot se | Date: | Mon, 12 Jul 2021 17:08:57 +0000 |
| Subject: | Bug #81253 [NEW]: unexpected result of setting env[LC_MESSAGES] in php-fpm pool config | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-234988@lists.php.net to get a copy of this message | ||
From: php at wb9 dot se
Operating system: FreeBSD
PHP version: 7.4.21
Package: FPM related
Bug Type: Bug
Bug description:unexpected result of setting env[LC_MESSAGES] in php-fpm pool config
Description:
------------
Tested on FreeBSD 13 with PHP Version 7.4.21 from ports.
Configure line: './configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--with-libxml' '--with-password-argon2=/usr/local'
'--program-prefix='
'--enable-mysqlnd' '--enable-fpm' '--with-fpm-user=www'
'--with-fpm-group=www' '--enable-embed' '--enable-dtrace'
'--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man'
'--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd13.0'
'build_alias=amd64-portbld-freebsd13.0' 'PKG_CONFIG=pkgconf' 'CFLAGS=-O2
-pipe -fstack-protector-strong -fno-strict-aliasing ' 'CPP=cpp'
'CXXFLAGS=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing '
Setting env[LC_MESSAGES] = C.UTF-8 in the www php-fpm pool config sets
results in "6" => "C.UTF8" in the $_SERVER array.
Test script:
---------------
phpinfo();
Expected result:
----------------
$_SERVER["LC_MESSAGES"] => "C.UTF-8"
Actual result:
--------------
$_SERVER["6"] => "C.UTF8"
--
Edit bug report at https://bugs.php.net/bug.php?id=81253&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81253&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81253&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81253&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81253&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81253&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81253&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81253&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81253&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81253&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81253&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81253&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81253&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81253&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81253&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81253&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81253&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81253&r=mysqlcfg