diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php index 8c29af7c3a6..a945fa8ceb7 100644 --- a/libs/upgradephp/upgrade.php +++ b/libs/upgradephp/upgrade.php @@ -710,4 +710,12 @@ function dump () { class Error { } -} \ No newline at end of file +} + +if(!function_exists('fnmatch')) { + + function fnmatch($pattern, $string) { + return preg_match("#^".strtr(preg_quote($pattern, '#'), array('\*' => '.*', '\?' => '.'))."$#i", $string); + } // end + +} // end if \ No newline at end of file