Bug #80137 [Opn->Csd]: getprotobyname and getprotobynumber fail since there is no /etc/protocols
| From: | nikic@php.net | Date: | Tue, 29 Sep 2020 08:59:57 +0000 |
| Subject: | Bug #80137 [Opn->Csd]: getprotobyname and getprotobynumber fail since there is no /etc/protocols | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-229256@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80137&edit=1
ID: 80137
Updated by: nikic@php.net
Reported by: sigsegv at makadev dot de
Summary: getprotobyname and getprotobynumber fail since there
is no /etc/protocols
-Status: Open
+Status: Closed
Type: Bug
Package: Testing related
Operating System: debian:buster (docker container)
PHP Version: 8.0Git-2020-09-22 (Git)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of karbe@celloon.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f5afd0a8270258fb70f70726ae3ed39780817038
Log: Fix bug #80137
Previous Comments:
------------------------------------------------------------------------
[2020-09-23 13:13:18] sigsegv at makadev dot de
The following pull request has been associated:
Patch Name: Fix #80137: skip getprotobyname() and getprotobynumber() tests on *nix if there is no
/etc/protocols file
On GitHub: https://github.com/php/php-src/pull/6193
Patch: https://github.com/php/php-src/pull/6193.patch
------------------------------------------------------------------------
[2020-09-22 19:10:03] sigsegv at makadev dot de
Description:
------------
The following tests fail inside a debian:buster (and most likely other) container because
/etc/protocols doesn't exist:
getprotobyname function basic test [ext/standard/tests/network/getprotobyname_basic.phpt]
getprotobynumber function basic test [ext/standard/tests/network/getprotobynumber_basic.phpt]
Expected result:
----------------
the test should be skipped if /etc/protocols doesn't exist
Actual result:
--------------
the test fails:
================================================================================
/home/php-tester/php-src/ext/standard/tests/network/getprotobyname_basic.phpt
================================================================================
bool(false)
================================================================================
001+ bool(false)
001- int(6)
================================================================================
================================================================================
/home/php-tester/php-src/ext/standard/tests/network/getprotobynumber_basic.phpt
================================================================================
bool(false)
================================================================================
001+ bool(false)
001- string(3) "tcp"
================================================================================
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80137&edit=1