This commit is contained in:
foobar 2001-05-19 22:21:40 +00:00
parent 6be7eb9059
commit 16b94858b6
2 changed files with 8 additions and 0 deletions

View file

@ -370,6 +370,8 @@ getlogin \
gethostbyaddr \ gethostbyaddr \
getprotobyname \ getprotobyname \
getprotobynumber \ getprotobynumber \
getservbyname \
getservbyport \
getrusage \ getrusage \
gettimeofday \ gettimeofday \
gmtime_r \ gmtime_r \

View file

@ -237,7 +237,10 @@ function_entry basic_functions[] = {
PHP_FE(mt_rand, NULL) PHP_FE(mt_rand, NULL)
PHP_FE(mt_srand, NULL) PHP_FE(mt_srand, NULL)
PHP_FE(mt_getrandmax, NULL) PHP_FE(mt_getrandmax, NULL)
#if HAVE_GETSERVBYNAME
PHP_FE(getservbyname, NULL) PHP_FE(getservbyname, NULL)
#endif
#if HAVE_GETSERVBYPORT #if HAVE_GETSERVBYPORT
PHP_FE(getservbyport, NULL) PHP_FE(getservbyport, NULL)
#endif #endif
@ -247,6 +250,7 @@ function_entry basic_functions[] = {
#if HAVE_GETPROTOBYNUMBER #if HAVE_GETPROTOBYNUMBER
PHP_FE(getprotobynumber, NULL) PHP_FE(getprotobynumber, NULL)
#endif #endif
PHP_FE(gethostbyaddr, NULL) PHP_FE(gethostbyaddr, NULL)
PHP_FE(gethostbyname, NULL) PHP_FE(gethostbyname, NULL)
PHP_FE(gethostbynamel, NULL) PHP_FE(gethostbynamel, NULL)
@ -2256,6 +2260,7 @@ PHP_FUNCTION(ignore_user_abort)
/* {{{ proto int getservbyname(string service, string protocol) /* {{{ proto int getservbyname(string service, string protocol)
Returns port associated with service. Protocol must be "tcp" or "udp". */ Returns port associated with service. Protocol must be "tcp" or "udp". */
#if HAVE_GETSERVBYNAME
PHP_FUNCTION(getservbyname) PHP_FUNCTION(getservbyname)
{ {
pval **name,**proto; pval **name,**proto;
@ -2274,6 +2279,7 @@ PHP_FUNCTION(getservbyname)
RETURN_LONG(ntohs(serv->s_port)); RETURN_LONG(ntohs(serv->s_port));
} }
#endif
/* }}} */ /* }}} */