Esempio n. 1
0
 function glob($pattern, $flags = 0)
 {
     return php_compat_glob($pattern, $flags);
 }
Esempio n. 2
0
/**
 * Replace glob() since this function is apparently
 * disabled for no apparent reason ("security") on some systems
 *
 * @see glob()
 */
function glob_compat($pattern, $flags = 0)
{
    if (in_array('glob', explode(',', ini_get('disable_functions'))) || !function_exists('glob')) {
        include 'glob.php';
        return php_compat_glob($pattern, $flags);
    }
    return glob($pattern, $flags);
}