| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2012-04-17 05:09 UTC] laruence@php.net
 
-Status: Open
+Status: Feedback
  [2012-04-17 05:09 UTC] laruence@php.net
  [2012-04-17 07:01 UTC] yolongyi at gmail dot com
  [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 09:00:01 2025 UTC | 
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