php扩展mailparse安装

git clone https://github.com/php/pecl-mail-mailparse.git mailparse
cd mailparse
phpize
./configure
sed -i 's/#if\s!HAVE_MBSTRING/#ifndef MBFL_MBFILTER_H/' ./mailparse.c
make
make install 
 echo "extension=mailparse.so" | sudo tee   $(php-config --ini-dir)/mailparse.ini

开源项目地址 https://github.com/php-mime-mail-parser/php-mime-mail-parser

添加新评论 »