Edit report at https://bugs.php.net/bug.php?id=61750&edit=1

 ID:                 61750
 Comment by:         yolongyi at gmail dot com
 Reported by:        yolongyi at gmail dot com
 Summary:            php-fpm can not load mbstring module
 Status:             Feedback
 Type:               Bug
 Package:            FPM related
 Operating System:   Linux
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

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 
?


Previous Comments:
------------------------------------------------------------------------
[2012-04-17 05:09:47] [email protected]

php-cli will prefer php-cli.ini, plz check your php inis.

------------------------------------------------------------------------
[2012-04-17 04:17:52] yolongyi at gmail dot com

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 this bug report at https://bugs.php.net/bug.php?id=61750&edit=1

Reply via email to