Home  >  Article  >  Backend Development  >  关于PHP扩展ext_skel生成文件乱码的问题(初级)

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

WBOY
WBOYOriginal
2016-06-06 20:16:171407browse

文件内容:

xxx.def

<code>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)
</code>

命令:

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

请问,为什么会出现144行的???,是因为编码问题么?还是什么问题,怎么解决下。
关于PHP扩展ext_skel生成文件乱码的问题(初级)

回复内容:

文件内容:

xxx.def

<code>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)
</code>

命令:

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

请问,为什么会出现144行的???,是因为编码问题么?还是什么问题,怎么解决下。
关于PHP扩展ext_skel生成文件乱码的问题(初级)

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn