parser: RETURN [<native call> AS] SET_FUNC
[m6w6/ext-psi] / psi.d / glob.psi
index 5e6d21534d452d34c36304878dfb533dbd06f16c..8fc3b0b31c0302a728338c47034a66a42573ff5d 100644 (file)
@@ -14,7 +14,7 @@ function psi\glob(string $pattern, int $flags, array &$glob = NULL, callable $er
                        strval($gl_pathv)
                )
        );
-       return to_int(glob);
+       return glob(path, flags, err, buf) as to_int(glob);
        set $glob = to_array(*buf,
                to_int(gl_matchc),
                to_int(gl_pathc),