php拓展安装

Yaf安装配置:http://www.laruence.com/manual/yaf.install.html#yaf.installation.linux

下载Yaf的最新版本, 解压缩以后, 进入Yaf的源码目录, 依次执行(其中PHP_BIN是PHP的bin目录):

      $PHP_BIN/phpize
      ./configure --with-php-config=$PHP_BIN/php-config
      make
      make install

扩展目录执行 /usr/local/php56/bin/phpize
./configure --with-php-config=/usr/local/php56/bin/php-config
make
make install

http://www.laruence.com/2008/08/16/301.html #变量扩展

https://pan.baidu.com/s/1gfBb0P1
php.ini

extension=yaf.so
extension=redis.so

yaf.environ = dev
yaf.library = NULL
yaf.cache_config = 0
yaf.name_suffix = 1
yaf.name_separator = ""
yaf.forward_limit = 5
yaf.use_namespace = 1
yaf.use_spl_autoload = 0



写扩展:http://www.open-open.com/lib/view/open1433142236682.html
https://zephir-lang.com/


原文地址:https://www.cnblogs.com/nowphp/p/5599528.html