I'm currently working to put our project under php7.
When trying to compile the mailparse extension or use pecl to install it, I get this error:
#error The mailparse extension requires the mbstring extension!
I did install the php7.0-mbstring and tried to put the mbstring extension with the mailparse source code. I also tried to use my old C skills and try include the libraries myself without success.
Any of you has an idea how I could solve my problem? (without editing the code like I saw in some forums)
Thanks
You should be able to download the mailparse source, comment out the test for
HAVE_MBSTRING
inmailparse.c
(around line 34), and build it normally.Here's what I did in Ubuntu 16.04 (assume 'sudo' when necessary):
Then you just need to enable the
mailparse.so
module in your PHP configuration.For Ubuntu 16.04 and PHP-FPM, you'd use: