2 messages in com.mysql.lists.eventum-develRe: mbstring issues
FromSent OnAttachments
Corey Stup21 Nov 2007 11:33 
Bryan Alsdorf01 Dec 2007 01:32 
Subject:Re: mbstring issues
From:Bryan Alsdorf (bry@mysql.com)
Date:12/01/2007 01:32:25 AM
List:com.mysql.lists.eventum-devel

Hi Corey,

Corey Stup wrote:

I'm upgrading from 1.7.1 to 2.1.

I just built the current PHP (2.5.2), and Eventum is having issues with:

Fatal error: Call to undefined function mb_detect_encoding() in /opt/freeware/apache/share/htdocs/eventum-2.1/include/php-gettext/gettext.inc on line 107

Looking at mb_detect_encoding, it requires the mbstring extension for PHP, which is not added by default. http://us2.php.net/manual/en/ref.mbstring.php

Is this a prerequisite extension now? I have my APP_GETTEXT_MODE setting to 'native', although I don't have gettext support built into PHP either (so I guess its falling back on the php-gettext, which appears to require mbstring, although it doesn't check for it before using the functions...)

I had a fix for this in my dev environment but I forget to merge it into the
release. My change is simple, and you can see the diff here:

http://svn.mysql.com/fisheye/browse/eventum-gpl/eventum/include/php-gettext/gettext.inc?r1=3318&r2=3497

This will be in our next release.

Please note that while you do not need mbstring if you are only using english,
using a foreign language may require mbstring.

Best Regards,

Discover new MySQL Monitoring & Advisory features at: http://www.mysql.com/products/enterprise/whats_new.html