To enable Cyrus IMAP support and to use these functions you have to compile PHP with the --with-cyrus option.
The IMAP, recode, YAZ and Cyrus extensions cannot be used in conjuction, because they share the same internal symbols.