summaryrefslogtreecommitdiff
path: root/includes/unicode.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-01 19:51:06 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-01 19:51:06 +0000
commit424250196a65b48919de50b2a3327f67c076e0d3 (patch)
tree83b9cae1c024bd391d15f8faeee7595985fca4d7 /includes/unicode.inc
parent4a6243aff27d5f26189e0e9eff2039fe0cdbb754 (diff)
downloadbrdo-424250196a65b48919de50b2a3327f67c076e0d3.tar.gz
brdo-424250196a65b48919de50b2a3327f67c076e0d3.tar.bz2
- Patch #279516 by c960657: removed many PHP4-isms. Great patch.
Diffstat (limited to 'includes/unicode.inc')
-rw-r--r--includes/unicode.inc6
1 files changed, 0 insertions, 6 deletions
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 <a href="@url">PHP PCRE documentation</a> 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 <a href="@url">PHP mbstring extension</a> for improved Unicode support.', array('@url' => 'http://www.php.net/mbstring')));