CVS update: php3/functions

From: Date: Mon, 24 May 1999 18:08:53 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5941@lists.php.net to get a copy of this message
Date: Monday May 24, 1999 @ 14:08 Author: sas Update of /repository/php3/functions In directory php:/tmp/cvs-serv32139 Modified Files: wddx_a.c Log Message: rewrite that section a little bit Index: php3/functions/wddx_a.c diff -u php3/functions/wddx_a.c:1.5 php3/functions/wddx_a.c:1.6 --- php3/functions/wddx_a.c:1.5 Mon May 24 14:00:40 1999 +++ php3/functions/wddx_a.c Mon May 24 14:08:53 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: wddx_a.c,v 1.5 1999/05/24 18:00:40 sas Exp $ */ +/* $Id: wddx_a.c,v 1.6 1999/05/24 18:08:53 sas Exp $ */ #include "php.h" #include "internal_functions.h" @@ -644,23 +644,8 @@ char *buf; argc = ARG_COUNT(ht); - switch (argc) - { - case 1: - if (getParameters(ht, 1, &var) == FAILURE) { - RETURN_FALSE; - } - break; - - case 2: - if (getParameters(ht, 2, &var, &comment) == FAILURE) { - RETURN_FALSE; - } - break; - - default: - WRONG_PARAM_COUNT; - break; + if(argc < 1 || argc > 2 || getParameters(ht, argc, &var, &comment) == FAILURE) { + WRONG_PARAM_COUNT; } packet = emalloc(sizeof(wddx_packet)); -- 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 (#5941) next »