Bug #80137 [NEW]: getprotobyname and getprotobynumber fail since there is no /etc/protocols
| From: | sigsegv at makadev dot de | Date: | Tue, 22 Sep 2020 19:10:03 +0000 |
| Subject: | Bug #80137 [NEW]: getprotobyname and getprotobynumber fail since there is no /etc/protocols | ||
| Groups: | php.bugs php.qa | ||
| Request: | Send a blank email to php-bugs+get-229150@lists.php.net to get a copy of this message | ||
From: sigsegv at makadev dot de
Operating system: debian:buster (docker container)
PHP version: 8.0Git-2020-09-22 (Git)
Package: Testing related
Bug Type: Bug
Bug description:getprotobyname and getprotobynumber fail since there is no /etc/protocols
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 bug report at https://bugs.php.net/bug.php?id=80137&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80137&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80137&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80137&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80137&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80137&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80137&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80137&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80137&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80137&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80137&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80137&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80137&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80137&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80137&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80137&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80137&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80137&r=mysqlcfg