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

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

WBOY
Release: 2016-06-06 20:16:17
Original
1454 people have browsed it

文件内容:

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>
Copy after login
Copy after login

命令:

./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>
Copy after login
Copy after login

命令:

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template