awesee / php2go

用Go语言实现PHP内置函数
https://php2go.awesee.cn
MIT License
209 stars 49 forks source link

以下函数错误 #67

Open rhettli opened 4 years ago

rhettli commented 4 years ago

github.com/openset/php2go/php

....\pkg\mod\github.com\openset\php2go@v0.0.0-20200118041952-0d6edc7c98fe\php\directory.go:27:22: cannot use fd (type int) as type syscall.Handle in argument to syscall.Close

Compilation finished with exit code 2

// Closedir - Close directory's handle
func Closedir(fd int) (err error) {

    return syscall.Close(fd)
}
rhettli commented 4 years ago

作者可以给版本打个标签,防止master分支被污染了

awesee commented 4 years ago

@rhettli 这个项目不能在生产中用,只能用于个人学习。里面实现的函数都没有做过完整的测试