当前位置:Gxlcms > PHP教程 > 关于PHP扩展ext_skel生成文件乱码的问题(初级)

关于PHP扩展ext_skel生成文件乱码的问题(初级)

时间:2021-07-01 10:21:17 帮助过:19人阅读

文件内容:

xxx.def

resource file_open(string filename, string mode)
 
bool file_close(resource filehandle)
 
string file_read(resource filehandle, int size)
 
bool file_write(resource filehandle, string buffer)
 
bool file_eof(resource filehandle)

命令:

./ext_skel --extname=xxx proto=xxx.def请输入代码

请问,为什么会出现144行的???,是因为编码问题么?还是什么问题,怎么解决下。

回复内容:

文件内容:

xxx.def

resource file_open(string filename, string mode)
 
bool file_close(resource filehandle)
 
string file_read(resource filehandle, int size)
 
bool file_write(resource filehandle, string buffer)
 
bool file_eof(resource filehandle)

命令:

./ext_skel --extname=xxx proto=xxx.def请输入代码

请问,为什么会出现144行的???,是因为编码问题么?还是什么问题,怎么解决下。

直接改不就行了,ext_skel 只是用来生成默认形式的扩展的,并不一定非要用它来生成扩展,自己手动敲也能写。

人气教程排行