This commit is contained in:
vChabot
2012-02-07 08:50:07 +00:00
parent a676da65c4
commit 8df03e2d7f
+3 -5
View File
@@ -2204,14 +2204,12 @@ FileETag INode MTime Size
*/ */
public static function checkPCREUTF8() public static function checkPCREUTF8()
{ {
if (!function_exists('preg_match')) $return = true;
return false;
$regexd = preg_replace('/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-'); $regexd = preg_replace('/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-');
if ($regexd != '--') if ($regexd != '--')
return false; $return = false;
return true; return $return;
} }
} }