cvs: php4(PHP_4_0_6) / configure.in /ext/standard basic_functions.c

From: Date: Sat, 19 May 2001 22:23:14 +0000
Subject: cvs: php4(PHP_4_0_6) / configure.in /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5859@lists.php.net to get a copy of this message
sniper Sat May 19 15:23:14 2001 EDT Modified files: (Branch: PHP_4_0_6) /php4 configure.in /php4/ext/standard basic_functions.c Log: MFH Index: php4/configure.in diff -u php4/configure.in:1.244.2.1 php4/configure.in:1.244.2.2 --- php4/configure.in:1.244.2.1 Tue May 15 10:50:32 2001 +++ php4/configure.in Sat May 19 15:23:13 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.244.2.1 2001/05/15 17:50:32 andi Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.244.2.2 2001/05/19 22:23:13 sniper Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -370,6 +370,8 @@ gethostbyaddr \ getprotobyname \ getprotobynumber \ +getservbyname \ +getservbyport \ getrusage \ gettimeofday \ gmtime_r \ Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.331.2.1 php4/ext/standard/basic_functions.c:1.331.2.2 --- php4/ext/standard/basic_functions.c:1.331.2.1 Sat May 19 00:43:25 2001 +++ php4/ext/standard/basic_functions.c Sat May 19 15:23:13 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.331.2.1 2001/05/19 07:43:25 sas Exp $ */ +/* $Id: basic_functions.c,v 1.331.2.2 2001/05/19 22:23:13 sniper Exp $ */ #include "php.h" #include "php_main.h" @@ -237,7 +237,10 @@ PHP_FE(mt_rand, NULL) PHP_FE(mt_srand, NULL) PHP_FE(mt_getrandmax, NULL) + +#if HAVE_GETSERVBYNAME PHP_FE(getservbyname, NULL) +#endif #if HAVE_GETSERVBYPORT PHP_FE(getservbyport, NULL) #endif @@ -247,6 +250,7 @@ #if HAVE_GETPROTOBYNUMBER PHP_FE(getprotobynumber, NULL) #endif + PHP_FE(gethostbyaddr, NULL) PHP_FE(gethostbyname, NULL) PHP_FE(gethostbynamel, NULL) @@ -2235,6 +2239,7 @@ /* {{{ proto int getservbyname(string service, string protocol) Returns port associated with service. Protocol must be "tcp" or "udp". */ +#if HAVE_GETSERVBYNAME PHP_FUNCTION(getservbyname) { pval **name,**proto; @@ -2253,6 +2258,7 @@ RETURN_LONG(ntohs(serv->s_port)); } +#endif /* }}} */

« previous php.cvs (#5859) next »