Skip to content

Commit

Permalink
fix mb_ereg warning
Browse files Browse the repository at this point in the history
  • Loading branch information
indeyets authored and lillialexis committed Apr 28, 2010
1 parent 62a39fa commit 7339c01
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Auth/OpenID/Parse.php
Expand Up @@ -218,17 +218,17 @@ function removeQuotes($str)

function match($regexp, $text, &$match)
{
if (!is_callable('mb_ereg_search_init')) {
return preg_match($regexp, $text, $match);
} else {
$regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags));
mb_ereg_search_init($text, $regexp);
if (!mb_ereg_search()) {
return false;
}
list($match) = mb_ereg_search_getregs();
return true;
}
if (!is_callable('mb_ereg_search_init')) {
return preg_match($regexp, $text, $match);
}

$regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags));
mb_ereg_search_init($text);
if (!mb_ereg_search($regexp)) {
return false;
}
list($match) = mb_ereg_search_getregs();
return true;
}

/**
Expand Down

0 comments on commit 7339c01

Please sign in to comment.