cvs: php-src(PHP_4_3) /ext/yp yp.c
| From: | Ilia Alshanetsky | Date: | Mon, 31 May 2004 21:01:20 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/yp yp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27529@lists.php.net to get a copy of this message | ||
iliaa Mon May 31 17:01:20 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/yp yp.c
Log:
MFH: Added missing argument check.
http://cvs.php.net/diff.php/php-src/ext/yp/yp.c?r1=1.31.8.5&r2=1.31.8.6&ty=u
Index: php-src/ext/yp/yp.c
diff -u php-src/ext/yp/yp.c:1.31.8.5 php-src/ext/yp/yp.c:1.31.8.6
--- php-src/ext/yp/yp.c:1.31.8.5 Thu Nov 13 19:32:29 2003
+++ php-src/ext/yp/yp.c Mon May 31 17:01:20 2004
@@ -16,7 +16,7 @@
| Fredrik Ohrn |
+----------------------------------------------------------------------+
*/
-/* $Id: yp.c,v 1.31.8.5 2003/11/14 00:32:29 iliaa Exp $ */
+/* $Id: yp.c,v 1.31.8.6 2004/05/31 21:01:20 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -77,6 +77,10 @@
PHP_FUNCTION(yp_get_default_domain)
{
char *outdomain;
+
+ if (ZEND_NUM_ARGS()) {
+ WRONG_PARAM_COUNT;
+ }
if((YP(error) = yp_get_default_domain(&outdomain))) {
php_error(E_WARNING, yperr_string (YP(error)));