1、使用ext_skel工具生成扩展框架 

./ext_skel --extname=myext

2、编辑config.m4文件

cd myext/
vim config.m4

去掉以下内容的注释:

PHP_ARG_ENABLE(changchunbo_test, whether to enable changchunbo_test support,
 [ --enable-changchunbo_test Enable changchunbo_test support])

3、php化并配置
phpize5
 ./configure --with-php-config=/usr/bin/php-config5

4、编译安装

make
make test
sudo make install

5、查看扩展

cd /usr/lib/php5/20121212/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2022-02-09
  • 2022-02-09
  • 2022-02-11
  • 2021-08-05
  • 2022-01-14
相关资源
相似解决方案