1 function psi\glob(string $pattern, int $flags, array &$glob = NULL, callable $errfn = NULL) : int {
2 let path = strval($pattern);
3 let flags = intval($flags);
4 let err = callback intval($errfn(
8 let buf = &arrval($glob,
18 set $glob = to_array(*buf,
23 to_array(*gl_pathv, gl_pathc + gl_offs, to_string(*gl_pathv))