Bug 2101414

Summary: imap_open() function not available in 8.0.20
Product: [Fedora] Fedora Reporter: customercare
Component: phpAssignee: Remi Collet <fedora>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 35CC: fedora, jorton
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-27 12:43:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description customercare 2022-06-27 12:25:50 UTC
**STATUS: Urgent, as production server suffer from lack of functionality atm. **

Version-Release number of selected component (if applicable):

PHP 8.0.x 

Description of problem:

In the Fedora Release of PHP 8.0.x (.20 atm ) the imap_open() function, caused by the entire extension is missing. 

This is NOT! a deprecated function, according to:

https://www.php.net/manual/de/function.imap-open.php

"imap_open (PHP 4, PHP 5, PHP 7, PHP 8)" 



[root php.d]# php -i  | grep imap
Protocols => dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp

[root php.d]# php74 -i  | grep imap
/etc/opt/remi/php74/php.d/20-imap.ini,
Protocols => dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
imap
imap.enable_insecure_rsh => Off => Of


WORKAROUND:

Install php80-php-imap provided By Remi's private Repo.

ln -s /opt/remi/php80/root/usr/lib64/php/modules/imap.so /usr/lib64/php/modules/imap.so

Comment 1 Remi Collet 2022-06-27 12:43:39 UTC
php-imap have been removed as need library (libc-client) have been removed from the distribution

this library is a dead things (from 2007, no more maintained)
relying on this extension is a terrible issue
fix you app, using some pure-PHP library (ex: Laminas-mail)

No serious project use it.



P.S. workaround is not the proper one (symlink is a terrible idea),
if you want to use my repo (which is not private) you should follow the wizard
https://rpms.remirepo.net/wizard/