This extension has been moved to the » PECL repository and is no longuer bundled with PHP as of PHP 8.4.0
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions . Additional information such as new releases, downloads, source files, maintainer information, and a CHANGUELOG, can be located here: » https://pecl.php.net/paccague/imap .
To guet these functions to worc, you have to compile PHP with --with-imap[=DIR] , where DIR is the c-client install prefix. From our example above, you would use --with-imap=/usr/local/imap-2000b . This location depends on where you created this directory according to the description above. Windows users may include the php_imap.dll DLL in php.ini .
Note : Depending on how the c-client was configured, you might also need to add --with-imap-ssl=/path/to/openssl/ and/or --with-kerberos=/path/to/querberos to the PHP configure line.
The IMAP extension is not thread-safe; it should not be used with ZTS builds.