• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

preg_match_all - UTF8

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
6 posts • Page 1 of 1

Postby jaruz » Sat Sep 02, 2006 6:47 pm

Hello:

I am receiving the following error:

[WARNING] preg_match_all(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 error in line 119 of lib/utf8/utf8.php

Is there a way to fix this, besided upgrading PHP which I can't do?

Thanks!

Sincerely yours,


Juan Antonio
jaruz
New member
 
Posts: 3
Joined: Sat Sep 02, 2006 6:43 pm
Top

Postby phpfreechat » Sat Sep 02, 2006 8:55 pm

You can try that :

in src/phpfreechat.class.php
search for this line :
Code: Select all
$nickname = utf8_substr($nickname, 0, $c->max_nick_len);

replace it by this one :
Code: Select all
$nickname = @utf8_substr($nickname, 0, $c->max_nick_len);

keep me informed
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby jaruz » Sat Sep 02, 2006 11:07 pm

Hi Stéphane:

When I make the change you suggest, I no longer get the error but the chats does not let anybody login. (It keeps asking for a nickname):

http://chat.oaxaca.com/phpfreechat/

I am using version 0.9.3. (stable). Tried using the new beta version, but I get practically the same preg utf8 error.
jaruz
New member
 
Posts: 3
Joined: Sat Sep 02, 2006 6:43 pm
Top

Postby phpfreechat » Sat Sep 02, 2006 11:48 pm

ok, so try to just remove this line

keep me informed
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby jaruz » Sun Sep 03, 2006 12:29 am

Yep, it works!

http://chat.oaxaca.com/phpfreechat/
jaruz
New member
 
Posts: 3
Joined: Sat Sep 02, 2006 6:43 pm
Top

Postby phpfreechat » Sun Sep 03, 2006 10:07 am

Ok cool,

I just committed a new version of utf8_substr that I found in typo3 code.
This new version seams to be less system dependant that the old one (no more preg_match_all dependancies).

So please test this code on the lastest subversion revisions or just wait for the coming 1.0-beta5 release.

keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 7 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub