aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_bbcodes.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-06-25 13:31:31 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-12-28 22:36:25 +0100
commiteda9fbbb6363cad0f2035b7a1f9fafe27f23832b (patch)
treec023293935fd985b304c7047337fbbf236ea8644 /phpBB/includes/acp/acp_bbcodes.php
parent1e59666ee32fb00c709644f1f66d3c0b662f32a0 (diff)
downloadforums-eda9fbbb6363cad0f2035b7a1f9fafe27f23832b.tar
forums-eda9fbbb6363cad0f2035b7a1f9fafe27f23832b.tar.gz
forums-eda9fbbb6363cad0f2035b7a1f9fafe27f23832b.tar.bz2
forums-eda9fbbb6363cad0f2035b7a1f9fafe27f23832b.tar.xz
forums-eda9fbbb6363cad0f2035b7a1f9fafe27f23832b.zip
[ticket/9574] Remove conditional PHP<5.2 code
There is a large amount of conditional code for PHP < 5.2 that can be removed with phpBB 3.1. PHPBB3-9574
Diffstat (limited to 'phpBB/includes/acp/acp_bbcodes.php')
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index 9eb594f301..b046424790 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -318,14 +318,11 @@ class acp_bbcodes
$utf8 = strpos($bbcode_match, 'INTTEXT') !== false;
// make sure we have utf8 support
+ // PHP may not be linked with the bundled PCRE lib and instead with an older version
$utf8_pcre_properties = false;
- if (version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.0', '>=')))
+ if (@preg_match('/\p{L}/u', 'a') !== false)
{
- // While this is the proper range of PHP versions, PHP may not be linked with the bundled PCRE lib and instead with an older version
- if (@preg_match('/\p{L}/u', 'a') !== false)
- {
- $utf8_pcre_properties = true;
- }
+ $utf8_pcre_properties = true;
}
$fp_match = preg_quote($bbcode_match, '!');