http://pecl.php.net/package/yaf
http://yaf.laruence.com/manual/index.html
根据环境可能需要 yum install pcre-devel
当前稳定版本2.1.9,下载源码解压后到目录下:
phpize ./configure --with-php-config=/usr/bin/php-config make make install
注意 php-config是你自己对应的目录,F17下yum安装的php就是上面那个。
之后配置一下生成的yaf.so
可以直接加在 /etc/php.ini 里面,
也可以加在 /etc/php.d/ 新建一个 yaf.ini,该文件会被自动加载,免得直接修改php.ini ,内容为
;for yaf extension=yaf.so
then:
service httpd restart