We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b8dc33 + b8215c0 commit c39f71bCopy full SHA for c39f71b
ext/standard/basic_functions.c
@@ -5606,6 +5606,15 @@ PHP_FUNCTION(getservbyname)
5606
5607
serv = getservbyname(name, proto);
5608
5609
+#if defined(_AIX)
5610
+ /*
5611
+ On AIX, imap is only known as imap2 in /etc/services, while on Linux imap is an alias for imap2.
5612
+ If a request for imap gives no result, we try again with imap2.
5613
+ */
5614
+ if (serv == NULL && strcmp(name, "imap") == 0) {
5615
+ serv = getservbyname("imap2", proto);
5616
+ }
5617
+#endif
5618
if (serv == NULL) {
5619
RETURN_FALSE;
5620
}
0 commit comments