projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
get rid of weird lemon symbols
[m6w6/ext-psi]
/
psi.d
/
glob.psi
diff --git
a/psi.d/glob.psi
b/psi.d/glob.psi
index 61ada04bb65c7f0f41d9360c0ed8de1fff958d6c..5e6d21534d452d34c36304878dfb533dbd06f16c 100644
(file)
--- a/
psi.d/glob.psi
+++ b/
psi.d/glob.psi
@@
-2,17
+2,24
@@
function psi\glob(string $pattern, int $flags, array &$glob = NULL, callable $er
let path = strval($pattern);
let flags = intval($flags);
let err = callback intval($errfn(
let path = strval($pattern);
let flags = intval($flags);
let err = callback intval($errfn(
- to_string(e
rrmsg
),
- to_int(errno)
+ to_string(e
path
),
+ to_int(e
e
rrno)
));
));
- let buf = &arrval($glob);
+ let buf = &arrval($glob,
+ intval($gl_matchc),
+ intval($gl_pathc),
+ intval($gl_offs),
+ intval($gl_flags),
+ &arrval($gl_pathv,
+ strval($gl_pathv)
+ )
+ );
return to_int(glob);
set $glob = to_array(*buf,
to_int(gl_matchc),
to_int(gl_pathc),
to_int(gl_offs),
to_int(gl_flags),
return to_int(glob);
set $glob = to_array(*buf,
to_int(gl_matchc),
to_int(gl_pathc),
to_int(gl_offs),
to_int(gl_flags),
- to_array(
gl_pathv, gl_pathc + gl_offs, to_string(
gl_pathv))
+ to_array(
*gl_pathv, gl_pathc + gl_offs, to_string(*
gl_pathv))
);
);
- free globfree(buf);
}
}