In PHP7 etc/standard/php_smart_str.h has been renamed to etc/standard/php_smart_string.h.
错误描述:
php-7.0.0beta3/ext/pthreads/php_pthreads.c:22:
./src/pthreads.h:41:10: fatal error: ‘ext/standard/php_smart_str.h’ file not
found
#include <ext/standard/php_smart_str.h>
^
1 error generated.
make: *** [php_pthreads.lo] Error 1
https://github.com/gophp7/gophp7-ext/wiki/extensions-catalog
https://github.com/krakjoe/pthreads/tree/seven
今天在github 上发现一个新的分支seven 可用在php7
下载之
使用当前最新php版本 php-7.0.0RC2
➜ /Users/liyunde/Downloads/pthreads-seven >phpize7
Configuring for:
PHP Api Version: 20131218
Zend Module Api No: 20141001
Zend Extension Api No: 320140815
配置
➜ /Users/liyunde/Downloads/pthreads-seven >./configure –with-php-config=php-config7 –enable-pthreads
…..
creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
编译,安装
make -j2
make test
sudo make install
make 通过,工作正常,enjoy !