cvs: php4 / configure.in /ext/standard basic_functions.c

From: Date: Sat, 19 May 2001 22:21:41 +0000
Subject: cvs: php4 / configure.in /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5858@lists.php.net to get a copy of this message
sniper Sat May 19 15:21:41 2001 EDT Modified files: /php4 configure.in /php4/ext/standard basic_functions.c Log: Fixed bug #10964 Index: php4/configure.in diff -u php4/configure.in:1.250 php4/configure.in:1.251 --- php4/configure.in:1.250 Sat May 12 05:22:33 2001 +++ php4/configure.in Sat May 19 15:21:40 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.250 2001/05/12 12:22:33 sas Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.251 2001/05/19 22:21:40 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.340 php4/ext/standard/basic_functions.c:1.341 --- php4/ext/standard/basic_functions.c:1.340 Fri May 18 16:38:46 2001 +++ php4/ext/standard/basic_functions.c Sat May 19 15:21:40 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.340 2001/05/18 23:38:46 sas Exp $ */ +/* $Id: basic_functions.c,v 1.341 2001/05/19 22:21:40 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) @@ -2256,6 +2260,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; @@ -2274,6 +2279,7 @@ RETURN_LONG(ntohs(serv->s_port)); } +#endif /* }}} */

« previous php.cvs (#5858) next »