From 424250196a65b48919de50b2a3327f67c076e0d3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 1 Nov 2008 19:51:06 +0000 Subject: - Patch #279516 by c960657: removed many PHP4-isms. Great patch. --- includes/unicode.inc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'includes/unicode.inc') diff --git a/includes/unicode.inc b/includes/unicode.inc index 96611d14d..f54ce1f1f 100644 --- a/includes/unicode.inc +++ b/includes/unicode.inc @@ -42,12 +42,6 @@ function _unicode_check() { // Set the standard C locale to ensure consistent, ASCII-only string handling. 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 TRUE on old PCRE versions. - if (preg_match('/[à-á]/u', 'â')) { - return array(UNICODE_ERROR, $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 supplied by PHP. Please refer to the PHP PCRE documentation for more information.', array('@url' => 'http://www.php.net/pcre'))); - } - // Check for mbstring extension if (!function_exists('mb_strlen')) { return array(UNICODE_SINGLEBYTE, $t('Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.', array('@url' => 'http://www.php.net/mbstring'))); -- cgit v1.2.3