php.net |  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
Description:
------------
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.


Patches

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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-09 05:16 UTC] krakjoe@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b8215c08171412fec3dc560161a1d18498418379
Log: Fixed #72974 imap is undefined service on AIX
 [2017-01-09 05:16 UTC] krakjoe@php.net
-Status: Open +Status: Closed
 [2017-01-09 05:16 UTC] krakjoe@php.net
-Assigned To: +Assigned To: krakjoe
 [2017-01-09 05:16 UTC] krakjoe@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC