Compiling PHP 7.1.0, I've noticed the following issue:
/usr/bin/ld: warning: libssl.so.8, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.9
Perhaps would it be interesting to compile manually libcurl is our SSL version is greater than the pkg version.