编译openssl.so
tar zxvf php-7.2.8.tar.gz
# 进入PHP的openssl扩展模块目录
cd php-7.2.8/ext/openssl/
brew install openssl
#注:此处生成的openssl/1.0.2q/以您电脑显示的为准
./configure --with-openssl=/usr/local/Cellar/openssl/1.0.2q/
或
./configure --with-openssl=/usr/local/Cellar/openssl/1.0.2q --with-php-config=/Applications/MAMP/bin/php/php7.2.8/bin/php-config
make && make install