|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51022 getservbyname_basic.phpt has incorrect description and misses a skip case
Submitted: 2010-02-11 21:29 UTC Modified: 2010-02-16 05:39 UTC
From: geissert at debian dot org Assigned:
Status: Closed Package: Network related
PHP Version: 5.3.1 OS: debian sid
Private report: No CVE-ID: None
 [2010-02-11 21:29 UTC] geissert at debian dot org
The description of ext/standard/tests/general_functions/getservbyname_basic.phpt is incorrect, as that's not really what the test is about.
Additionally, a SKIP section should be added to skip the test if /etc/services does not exist.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-12 16:26 UTC]
Why would you not have /etc/services and how is the description wrong?
(patches are welcome..)
 [2010-02-12 18:42 UTC] geissert at debian dot org
Maybe because it says:
Test function getservby*port*() by *calling it more than or less than its expected arguments*

The test does nothing of that :)

As to why /etc/services (and friends) wouldn't exist: because it is only required for networking (not going to strongly push that change, though.)
 [2010-02-16 05:38 UTC]
Automatic comment from SVN on behalf of geissert
Log: Correct description of getservbyname_basic.phpt (bug #51022)
 [2010-02-16 05:39 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 09:03:46 2023 UTC