Topic: How NOT to use utf from punbb? Only use PHP5

Hi,
I'm running a site that has dokuwiki integrated with punbb.

After upgrading to punbb 1.3, the dokuwiki auth_punbb just broke with this message:

Fatal error: Cannot redeclare utf8_strlen() in .../include/utf8/mbstring/core.php on line 26

So, how can I stop using punbb utf8 functions and instead use only php5 utf8 functions?

Thanks
Oliver

http://tinymailto.com/oliversl <-- my email after a captcha

Re: How NOT to use utf from punbb? Only use PHP5

oliversl wrote:

So, how can I stop using punbb utf8 functions and instead use only php5 utf8 functions?

PunBB does it just this way if available.

oliversl wrote:

After upgrading to punbb 1.3, the dokuwiki auth_punbb just broke with this message:

Fatal error: Cannot redeclare utf8_strlen() in .../include/utf8/mbstring/core.php on line 26

I had to comment out dokuwiki's utf8_* functions.

Carpe diem

3

Re: How NOT to use utf from punbb? Only use PHP5

Checking if the function is defined is a safer method than merely commenting anything out. Solutions such as the latter have a tendency to bite you on the arse on occasion.

Re: How NOT to use utf from punbb? Only use PHP5

Agree.

Carpe diem

5 (edited by oliversl 2009-02-19 14:06)

Re: How NOT to use utf from punbb? Only use PHP5

Can we have a if(defined('DO_NOT_USE_CUSTOM_UTF8')) return; settings?

Also I don't see anything wrong with supporting php4 only with a download plugin or compatibility pack. The idea right now is to only use PHP5 in all new installations.

Forgot to tell that my problem comes with the integration with dokuwiki, something that was broken until yesterday wink

I just posted a patch:
http://www.dokuwiki.org/auth:punbb

Thanks
Oliver

http://tinymailto.com/oliversl <-- my email after a captcha