編譯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