Adding IMAP to PHP 7.2 on OSX
问题 I'm using PHP 7.2 on OS X El Capitan, installed using Homebrew (of course). Now I'd like to use some IMAP functions from PHP's IMAP extension, but no matter what I search for, I can't find a way to add the extension on OSX. Some things I've tried... I have, of course, tried the most commonly recommended approach: $ brew reinstall php --with-imap Yet this fails, returning: Warning: php: this formula has no --with-imap option so it will be ignored! Another method, which I found mentioned in