Jump to content
The Uniform Server Community
Sign in to follow this  
andyjh122

Coral 8.7.0 Breaks mbstring

Recommended Posts

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

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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.0

Switch PHP to use development ini

Start servers

Run the above script

 

Check errors reported and the Apache error log this may shed some light on the real problem.

 

All the best

Ric

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...