Bug #72974 [Csd]: Test getservbyname_basic.phpt fails on AIX
| From: | krakjoe@php.net | Date: | Mon, 09 Jan 2017 05:16:20 +0000 |
| Subject: | Bug #72974 [Csd]: Test getservbyname_basic.phpt fails on AIX | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206416@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72974&edit=1
ID: 72974
Updated by: krakjoe@php.net
Reported by: matthieu dot sarter dot external at atos dot net
Summary: Test getservbyname_basic.phpt fails on AIX
Status: Closed
Type: Bug
Package: Network related
Operating System: AIX
PHP Version: 7.0.10
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2017-01-09 05:16:05] 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
------------------------------------------------------------------------
[2016-08-30 13:11:17] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72974&edit=1