File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ PHP NEWS
26
26
. Fixed bug #69442 (closing of fd incorrect when PTS enabled). (jaytaph)
27
27
. Fixed bug #47021 (SoapClient stumbles over WSDL delivered with
28
28
"Transfer-Encoding: chunked"). (Rowan Collins)
29
+ . Fixed bug #72974 (imap is undefined service on AIX). (matthieu.sarter)
29
30
30
31
- ZIP:
31
32
. Fixed bug #70103 (ZipArchive::addGlob ignores remove_all_path option). (cmb,
Original file line number Diff line number Diff line change @@ -5551,6 +5551,15 @@ PHP_FUNCTION(getservbyname)
5551
5551
5552
5552
serv = getservbyname (name , proto );
5553
5553
5554
+ #if defined(_AIX )
5555
+ /*
5556
+ On AIX, imap is only known as imap2 in /etc/services, while on Linux imap is an alias for imap2.
5557
+ If a request for imap gives no result, we try again with imap2.
5558
+ */
5559
+ if (serv == NULL && strcmp (name , "imap" ) == 0 ) {
5560
+ serv = getservbyname ("imap2" , proto );
5561
+ }
5562
+ #endif
5554
5563
if (serv == NULL ) {
5555
5564
RETURN_FALSE ;
5556
5565
}
You can’t perform that action at this time.
0 commit comments