|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61750 php-fpm can not load mbstring module
Submitted: 2012-04-17 04:17 UTC Modified: 2013-02-18 00:35 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: yolongyi at gmail dot com Assigned:
Status: No Feedback Package: FPM related
PHP Version: 5.3.10 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
4 + 6 = ?
Subscribe to this entry?

 [2012-04-17 04:17 UTC] yolongyi at gmail dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-17 05:09 UTC]
-Status: Open +Status: Feedback
 [2012-04-17 05:09 UTC]
php-cli will prefer php-cli.ini, plz check your php inis.
 [2012-04-17 07:01 UTC] yolongyi at gmail dot com
the php package are compiled with '--disable-cli' option ( checked via phpinfo() 
so there is not 'php-cli.ini'.
and making changes of '/etc/php/php.ini' affects both behavior.

can 'Zend Multibyte Support = disabled' affects the loading mbstring from php-fpm 
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 12:03:36 2021 UTC