Bug #2506: getservicebyport() and getservicebyname()

From: Date: Wed, 13 Oct 1999 15:05:27 +0000
Subject: Bug #2506: getservicebyport() and getservicebyname()
Groups: php.dev 
Request: Send a blank email to php-dev+get-11719@lists.php.net to get a copy of this message
From: shiva@aachalon.de Operating system: any PHP version: 3.0.12 PHP Bug Type: Feature/Change Request Bug description: getservicebyport() and getservicebyname() There already are gethostbyaddr() and gethostbyname() ... But where are the functions mentioned in the subject. Do I have to parse /etc/services to do that..? How about: SYNOPSIS mixed getservicebyname(string name) string getservicebyport(int port) DESCRIPTION getservicebyname("ftp") would return "21" getservicebyport(80) would return "www" Of course, when local /etc/services file has a mapping for it, otherwise it should return values like e.g. gethostbyaddr(..) getservicebyport(123456) would return "123456", when not defined in /etc/services just my two cents Christian

« previous php.dev (#11719) next »