aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-12-28 22:40:09 +0100
committerAndreas Fischer <bantu@phpbb.com>2010-12-28 22:40:09 +0100
commit6e51e52f0c0f34a5dea8e3e1730de039ed5895e6 (patch)
tree77a05c95078c7f86bfd1c5ae3780788198694e0e /phpBB/includes/cache.php
parent90ccdb4dad6521fe0431ab1e9373c5821156bc46 (diff)
parent6b4d0a254218e8d40151ca1bdff8c439f89502e9 (diff)
downloadforums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar.gz
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar.bz2
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar.xz
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.zip
Merge branch 'ticket/igorw/9574' into develop
* ticket/igorw/9574: [ticket/9574] Add pcre_utf8_support() function [ticket/9574] Remove conditional PHP<5.2 code [ticket/9574] Drop fallback implementations
Diffstat (limited to 'phpBB/includes/cache.php')
-rw-r--r--phpBB/includes/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/cache.php b/phpBB/includes/cache.php
index 52cd3e2404..1986f021c6 100644
--- a/phpBB/includes/cache.php
+++ b/phpBB/includes/cache.php
@@ -82,7 +82,7 @@ class cache extends acm
$result = $db->sql_query($sql);
$censors = array();
- $unicode = ((version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.0', '>='))) && @preg_match('/\p{L}/u', 'a') !== false) ? true : false;
+ $unicode = pcre_utf8_support();
while ($row = $db->sql_fetchrow($result))
{