Closed marc-mabe closed 7 years ago
这个错误在yac-0.9.2 也会有,只修复2.0.1之后的吗?应该好多项目都没切php7.0,是不是也需要修改0.9.2?
0.9.2的可以自己编译, 不要用pecl install
当然我回头再发个给5.5的0.9.3
I was able to install Yac for PHP 5.4 with the following:
apt-get install -y php5-dev
git clone https://github.com/laruence/yac.git
git checkout php5
/path/to/bin/phpize
./configure --with-php-config=/path/to/bin/php-config
make && make install
make test
Hope this helps someone else!
See https://travis-ci.org/marc-mabe/zend-cache/jobs/98510360 (search for
$ if [[ $PECL_INSTALL_YAC != '' ]]; then pecl install $PECL_INSTALL_YAC && phpenv config-add .ci/yac.ini || return 0 ; fi
)Output for yac-2.0.0 on PHP 7:
Output for yac-0.9.2 on PHP 5: