From:
Operating system: Linux
PHP version: 5.3.10
Package: FPM related
Bug Type: Bug
Bug description:php-fpm can not load mbstring module
Description:
------------
>From the command line, I can use the functions of mbstring like,
$ret = mb_detect_encoding("this is a test");
// do something with $ret
It does well. I can get the right result for $ret.
but if I open the same file from the browser via web server ( NginX +
php-fpm ),
it errors 'mb_detect_encoding' function does not exists.
I use the same php and php.ini in both command line and php-fpm.
( checked with phpinfo() )
and compiled php with '--enable-mbstring'
( also check with phpinfo() )
I think there must be some bug in php-fpm when it executes scripts.
Test script:
---------------
<?
echo "result:", function_exists('mb_detect_encoding'), "\n";
?>
Expected result:
----------------
result: 1
Actual result:
--------------
result:1 <--- in command line
result: <--- in browser
--
Edit bug report at https://bugs.php.net/bug.php?id=61750&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61750&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61750&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=61750&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61750&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=61750&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61750&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=61750&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=61750&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=61750&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=61750&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=61750&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=61750&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=61750&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61750&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=61750&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61750&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=61750&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=61750&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=61750&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=61750&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=61750&r=mysqlcfg