From phil@cryer.us Sat Jul 14 15:57:33 2007 From: phil To: dev@lists.roundcube.net Subject: Re: webmail Date: Sat, 17 Dec 2005 14:03:49 -0600 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2105533605489536056==" --===============2105533605489536056== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sat, 17 Dec 2005 17:13:06 +0100, L=C3=A9onard Bouchet wrote: >=20 > On 17 d=C3=A9c. 05, at 14:09, Andrew Croft wrote: >=20 >> Hello, I make everything like on docs, and now my server show me this=20 >> message: >> Fatal error: Call to undefined function preg_replace() in=20 >> /var/www/localhost/htdocs/westernlux.com/program/include/main.inc on=20 >> line 37 >=20 > It seems that your php version is installed without PCRE (perl=20 > compatible regular expression). Is this something we could query with the installer and tell the user if they= don't have it? This function checks the version, but could be modified and = run on install; function _unicode_check($errors =3D false) { // Set the standard C locale to ensure consistent, ASCII-only string handli= ng. setlocale(LC_CTYPE, 'C'); // Check for outdated PCRE library // Note: we check if U+E2 is in the range U+E0 - U+E1. This test returns TR= UE on old PCRE versions. if (preg_match('/[=C3=83 -=C3=83=C2=A1]/u', '=C3=83=C2=A2')) { if ($errors) { form_set_error('unicode', t('The PCRE library in your PHP installation = is outdated. This will cause problems when handling Unicode text. If you are = running PHP 4.3.3 or higher, make sure you are using the PCRE library supplie= d by PHP. Please refer to the PHP PCRE documentation for= more information.', array('%url' =3D> 'http://www.php.net/pcre'))); } return UNICODE_ERROR; }=20 P --=20 http://fak3r.com - you don't have to kick it --===============2105533605489536056==--