CVS update: php3/functions

From: Date: Thu, 25 Feb 1999 14:29:15 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4280@lists.php.net to get a copy of this message
Date: Thursday February 25, 1999 @ 9:29 Author: rasmus Update of /repository/php3/functions In directory asf:/home/rasmus/php3/functions Modified Files: yp.c Log Message: YP fixes from Stephanie Index: php3/functions/yp.c diff -c php3/functions/yp.c:1.1 php3/functions/yp.c:1.2 *** php3/functions/yp.c:1.1 Sat Feb 6 03:39:24 1999 --- php3/functions/yp.c Thu Feb 25 09:29:15 1999 *************** *** 26,32 **** | Authors: Stephanie Wehner <_@r4k.net> | +----------------------------------------------------------------------+ */ ! /* $Id: yp.c,v 1.1 1999/02/06 08:39:24 rasmus Exp $ */ #include "php.h" #include "internal_functions.h" --- 26,32 ---- | Authors: Stephanie Wehner <_@r4k.net> | +----------------------------------------------------------------------+ */ ! /* $Id: yp.c,v 1.2 1999/02/25 14:29:15 rasmus Exp $ */ #include "php.h" #include "internal_functions.h" *************** *** 78,84 **** --- 78,89 ---- Returns the order number or false */ void php3_yp_order(INTERNAL_FUNCTION_PARAMETERS) { pval *domain, *map; + + #if SOLARIS_YP unsigned long outval; + #else + int outval; + #endif if((ARG_COUNT(ht) != 2) || (getParameters(ht,2,&domain,&map) == FAILURE)) { WRONG_PARAM_COUNT; *************** *** 163,169 **** /* }}} */ /* {{{ proto array yp_next(string domain, string map, string key) ! Returns the key after key as $var["key"] and the line as $var["value"] */ void php3_yp_next(INTERNAL_FUNCTION_PARAMETERS) { pval *domain, *map, *key; char *outval, *outkey; --- 168,174 ---- /* }}} */ /* {{{ proto array yp_next(string domain, string map, string key) ! Returns an array with $var[$key] and the the line as the value */ void php3_yp_next(INTERNAL_FUNCTION_PARAMETERS) { pval *domain, *map, *key; char *outval, *outkey; *************** *** 181,188 **** RETURN_FALSE; } array_init(return_value); ! add_assoc_string(return_value,"key",outkey,1); ! add_assoc_string(return_value,"value",outval,1); } /* }}} */ --- 186,192 ---- RETURN_FALSE; } array_init(return_value); ! add_assoc_string(return_value,outkey,outval,1); } /* }}} */ -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4280) next »