Heim  >  Artikel  >  Backend-Entwicklung  >  关于PHP扩展ext_skel生成文件乱码的问题(初级)

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

WBOY
WBOYOriginal
2016-06-06 20:16:171408Durchsuche

文件内容:

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 只是用来生成默认形式的扩展的,并不一定非要用它来生成扩展,自己手动敲也能写。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn