andyjh122 Posted December 4, 2012 Report Share Posted December 4, 2012 Just upgraded from 8.6.6 to 8.7.0 and mbstring doesn't work. Says it's loaded ok in phpinfo, but i get this php error on first mbstring call. Same apache and php configs as 8.6.6, haven't changed anything. [Mon Dec 03 16:48:18.802288 2012] [:error] [pid 3068:tid 344] [client 192.168.x.x:51919] PHP Fatal error: Call to undefined function mb_internal_encoding() in C:\\UniServer\\www\\xxx\\include\\functions.php on line 17, referer: https://xxx.yyy.com/index.php Thanks for your help!! I love Uniform Server! Andrew Quote Link to comment Share on other sites More sharing options...
andyjh122 Posted December 4, 2012 Author Report Share Posted December 4, 2012 just replaced the php directory with 8.6.6 and it works, must be something in the php directory... same config file in both cases... Quote Link to comment Share on other sites More sharing options...
Ric Posted December 4, 2012 Report Share Posted December 4, 2012 just replaced the php directory with 8.6.6 and it works, must be something in the php directory... same config file in both cases... I ran the following simple test script:<?php /* Set internal character encoding to UTF-8 */ mb_internal_encoding("UTF-8"); /* Display current internal character encoding */ echo mb_internal_encoding(); ?> Correctly displays "UTF-8" on a default installation of 8.7.0 Note:Replacing the PHP folder (from 8.6.6) although in your case resolves the problem it is masking the real issue because the PHP core is downgraded to 5.4.7 Test: Perform the following:Extract a new copy of 8.7.0Switch PHP to use development iniStart serversRun the above script Check errors reported and the Apache error log this may shed some light on the real problem. All the bestRic Quote Link to comment Share on other sites More sharing options...
andyjh122 Posted December 5, 2012 Author Report Share Posted December 5, 2012 thanks my fault. it was php-win.exe and i thought it used php.ini, but i forgot i had to add mb_string to php-cli.ini thanks for your help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.