|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72974 Test getservbyname_basic.phpt fails on AIX
Submitted: 2016-08-30 13:11 UTC Modified: 2017-01-09 05:16 UTC
From: matthieu dot sarter dot external at atos dot net Assigned: krakjoe (profile)
Status: Closed Package: Network related
PHP Version: 7.0.10 OS: AIX
Private report: No CVE-ID: None
 [2016-08-30 13:11 UTC] matthieu dot sarter dot external at atos dot net
On Linux, both imap and imap2 services are defined, the first beeing an alias of the later.

On AIX, only imap2 is defined, so querying for the port number of "imap" service fails.

To ensure consistent behaviour on the two OS, I suggest to check for "imap2" when running on AIX if "imap" fails. This is implemented in the attached patch (tested with PHP 7.0.3, 7.0.7, 7.0.9 and 7.0.10 on AIX 6.1).

If consistency is not a priority, this test should be skipped when running on AIX.


php-7.0.3-aix-imap2.patch (last revision 2016-08-30 13:11 UTC by matthieu dot sarter dot external at atos dot net)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-09 05:16 UTC]
Automatic comment on behalf of krakjoe
Log: Fixed #72974 imap is undefined service on AIX
 [2017-01-09 05:16 UTC]
-Status: Open +Status: Closed
 [2017-01-09 05:16 UTC]
-Assigned To: +Assigned To: krakjoe
 [2017-01-09 05:16 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue May 30 01:03:39 2023 UTC