首页 > 后端开发 > php教程 > 快速开发php扩展

快速开发php扩展

WBOY
发布: 2016-06-23 14:29:01
原创
835 人浏览过

-bash-3.1$ ./ext_skel --extname=wd_probe

To use your new extension, you will have to execute the following steps:

1.  $ cd ..
2.  $ vi ext/wd_probe/config.m4
3.  $ ./buildconf
4.  $ ./configure --[with|enable]-wd_probe
5.  $ make
6.  $ ./php -f ext/wd_probe/wd_probe.php
7.  $ vi ext/wd_probe/wd_probe.c
8.  $ make

Repeat steps 3-6 until you are satisfied with ext/wd_probe/config.m4 and
step 6 confirms that your module is compiled into PHP. Then, start writing
code and repeat the last two steps as often as necessary.


#vi config.m4
PHP_ARG_ENABLE(wd_probe, whether to enable wd_probe support,
dnl Make sure that the comment is aligned:
[  --enable-wd_probe           Enable wd_probe support])

/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make test
make install

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板