第一步:使用ext_skel 生成
[root@localhost ext]# ./ext_skel --extname=study
Creating directory study
Creating basic files: config.m4 config.w32 .gitignore study.c php_study.h CREDITS EXPERIMENTAL tests/001.phpt study.php [done].
To use your new extension, you will have to execute the following steps:
1. $ cd ..
2. $ vi ext/study/config.m4
3. $ ./buildconf
4. $ ./configure --[with|enable]-study
5. $ make
6. $ ./sapi/cli/php -f ext/study/study.php
7. $ vi ext/study/study.c
8. $ make
网友评论