为 PHP 7.4.14 启用 imap - BIG SUR

Enable imap for PHP 7.4.14 - BIG SUR

我正在尝试启用我的本地开发环境,我已经在我的 Big Sur Mac 中安装了 Apache、PHP 和 MariaDB。 (全部用brew安装) 但是 imap php 扩展不起作用,这是因为 PHP 没有加载扩展。 Apache error_log 抛出:

PHP Warning:  PHP Startup: Unable to load dynamic library 'imap' 
(tried: /usr/local/lib/php/pecl/20190902/imap (dlopen(/usr/local/lib/php/pecl/20190902/imap, 
9): image not found), /usr/local/lib/php/pecl/20190902/imap.so 
(dlopen(/usr/local/lib/php/pecl/20190902/imap.so, 9): image not found)) in Unknown on line 0
[Sun Jan 17 09:30:08.936003 2021] [mpm_prefork:notice] [pid 2187] AH00163: Apache/2.4.46 
(Unix) PHP/7.4.14 configured -- resuming normal operations
[Sun Jan 17 09:30:08.936124 2021] [core:notice] [pid 2187] AH00094: Command line: 
'/usr/local/opt/httpd/bin/httpd -D FOREGROUND'

brew list 命令抛出:

 imap-uw, php@7.4,  ........

提前谢谢大家
MacOS BigSur 11.1

扩展名就在这里(附有说明): shivammathur Homebrew Extensions