Bug 2101414 - imap_open() function not available in 8.0.20
Summary: imap_open() function not available in 8.0.20
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: 35
Hardware: All
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-27 12:25 UTC by customercare
Modified: 2022-06-27 12:43 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-27 12:43:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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/


Note You need to log in before you can comment on or make changes to this bug.