Fatal error: Call to undefined function utf8_is_ascii() in /home/aaa1111/public_html/includes/classes/rlValid.class.php on line 324
The function is defined in 'ascii.php' --- ..function utf8_is_ascii($str) {
// Search for any bytes which are outside the ASCII range
return (preg_match('/(?:[^\x00-\x7F])/',$str) !== 1);
}
================================================== =WHY ERROR
loadUTF8functions('ascii', 'utf8_to_ascii', 'utf8_is_ascii');
if (!utf8_is_ascii($str)) { <<<<<<====line 324===>>>
if ($GLOBALS['config']['url_transliteration']) {
$str = utf8_to_ascii($str);
$str = preg_replace("/[^a-z0-9{$rx}]+/i", '-', $str);
} else {
$str = preg_replace('/[\s#%@;=\?\^\|~]+/', '-', $str);
}
} else {
$str = preg_replace("/[^a-z0-9{$rx}]+/i", '-', $str);
}
$str = preg_replace("/\.+/i", '-', $str);
$str = preg_replace('/\-+/', '-', $str);
$str = strtolower($str);
$str = trim($str, '-');
$str = trim($str, '/');
$str = trim($str);
return empty($str) ? false : $str;
}