php7.3 install yaf extension

At present, the yaf version of the pecl official website is 3.0.7, and the php7.3 version cannot be installed. You need to compile and install the 3.0.8 version on the bird's github https://github.com/laruence/yaf/releases

     Direct pecl install yaf is version 3.0.7, php version 7.3 can not be installed, will report an error:
/soft/yaf-3.0.7/yaf_session.c:97:31: error: 'ZEND_WRONG_PROPERTY_OFFSET' undeclared (first use in this function)
  if (property_info-> offset! = ZEND_WRONG_PROPERTY_OFFSET) {^
/soft/yaf-3.0.7/yaf_session.c:97:31: note: each undeclared identifier is reported only once for each function it appears in
make : *** [yaf_session.lo] Error 1


php7.3 version compile and install yaf3.0.8:
1, wget https://github.com/laruence/yaf/archive/yaf-3.0.8.tar.gz
2, tar -zxvf yaf-3.0.8.tar.gz
3. cd yaf-3.0.8.tar.gz
4, / usr / local / php / bin / phpize /
5, ./configure --prefix = / usr / local / php / bin / php-config
6, make && Make install
and then add extension = yaf.so to your php.ini configuration file.
For example, my php.ini: vim /usr/local/php/etc/php.ini 
signal control restart PHP:

ps -ef | grep php View the port of the php process

kill -USR2 port number

You can also restart violently, not recommended!

Like
————————————————
Copyright Statement: This article is an original article of CSDN blogger NOR and follows CC 4.0 BY-SA copyright agreement, please attach the original source for reprint Link and this statement.
Original link: https://blog.csdn.net/qq_27517377/article/details/88423922

Published 44 original articles · 130 praises · 1.37 million views

Guess you like

Origin blog.csdn.net/gb4215287/article/details/104751790