Bug #72974 [Opn->Csd]: Test getservbyname_basic.phpt fails on AIX

From: Date: Mon, 09 Jan 2017 05:16:06 +0000
Subject: Bug #72974 [Opn->Csd]: Test getservbyname_basic.phpt fails on AIX
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206415@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: Open +Status: Closed Type: Bug Package: Network related Operating System: AIX PHP Version: 7.0.10 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#206415) next »