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:getservbyname and getservbyport tests fail if there is no /etc/services
Description: ------------ the following tests fail inside a debian:buster (and most likely other) container because /etc/services doesn't exist: Test function getservbyport() by calling it more than or less than its expected arguments [ext/standard/tests/general_functions/getservbyport_basic.phpt] Test function getservbyport() by calling it more than or less than its expected arguments [ext/standard/tests/general_functions/getservbyport_variation1.phpt] Test function getservbyname() [ext/standard/tests/general_functions/getservbyname_basic.phpt] Expected result: ---------------- tests should be skipped if /etc/services doesn't exist Actual result: -------------- tests fail: ================================================================================ /home/php-tester/php-src/ext/standard/tests/general_functions/getservbyport_basic.phpt ================================================================================ Linux unsupported ================================================================================ 001+ Linux unsupported 001- PASS ================================================================================ ================================================================================ /home/php-tester/php-src/ext/standard/tests/general_functions/getservbyport_variation1.phpt ================================================================================ bool(false) bool(false) bool(false) bool(false) bool(false) ================================================================================ -- bool(false) bool(false) bool(false) 005+ bool(false) 005- string(%d) "%s" ================================================================================ ================================================================================ /home/php-tester/php-src/ext/standard/tests/general_functions/getservbyname_basic.phpt ================================================================================ bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) ================================================================================ 001+ bool(false) 002+ bool(false) 003+ bool(false) 004+ bool(false) 005+ bool(false) 006+ bool(false) 007+ bool(false) 008+ bool(false) 009+ bool(false) 010+ bool(false) 011+ bool(false) 001- int(%d) 002- int(%d) 003- int(%d) 004- int(%d) 005- int(%d) 006- int(%d) 007- int(%d) 008- int(%d) 009- int(%d) 010- int(%d) 011- int(%d) ================================================================================ -- Edit bug report at https://bugs.php.net/bug.php?id=80138&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80138&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80138&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80138&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80138&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80138&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80138&r=support Expected behavior: https://bugs.php.net/fix.php?id=80138&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80138&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80138&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80138&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80138&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80138&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80138&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80138&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80138&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80138&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80138&r=mysqlcfg