系统:macos10.14
现象:postman接口调用不会报扩展问题,CLI窗口下执行php脚本会报错。
报错信息:
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php@7.1/7.1.33/lib/php/20160303/vld.so' - dlopen(/usr/local/Cellar/php@7.1/7.1.33/lib/php/20160303/vld.so, 0x0009): code signature in (/usr/local/Cellar/php@7.1/7.1.33/lib/php/20160303/vld.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php@7.1/7.1.33/lib/php/20160303/redis.so' - dlopen(/usr/local/Cellar/php@7.1/7.1.33/lib/php/20160303/redis.so, 0x0009): code signature in (/usr/local/Cellar/php@7.1/7.1.33/lib/php/20160303/redis.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. in Unknown on line 0
哪位同学碰到过此类问题。网上搜了好多未解决问题。