Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.4k views
in Technique[技术] by (71.8m points)

Mac本地环境运行php项目,项目是微信公众号相关的,框架是php的lavarel

image.png
更新Mac系统版本后,重新配置本地的apache环境之后就报错,网上也没有对应的解决办法,报错为Use of undefined constant CURLOPT_IPRESOLVE - assumed 'CURLOPT_IPRESOLVE'


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

看下系统的curl版本,已经输出下PHP探针,看下php版本和PHP中curl拓展的版本,curlopt_ipresolve 是curl7.10.8中加入的,早于这个版本就无法使用


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...