Well... it is odd that the php site doesn't even mention it is depricated... I can only imagine that ereg() must be depricated as well.
I see the code is used in our regular expression validation... which makes sense. It appears we actually try to match using both the ereg and preg techniques:
if (!(!$required && $value=="")) {
if (strpos($extraArgs,"i") >= 0) {
$theMatch = eregi($regExStrStripped, $value);
}
else {
$theMatch = ereg($regExStrStripped, $value);
}
if (!$theMatch) {
$theMatch = preg_match($regExStr, $value);
if (!$theMatch) {
$isValid = false;
}
}
}
so the solution is to remove the checks using this type of regular expression match, and leave the preg functions as they are like:
if (!(!$required && $value=="")) {
$theMatch = preg_match($regExStr, $value);
if (!$theMatch) {
$isValid = false;
}
}
a find and replace of those lines should do the trick.