cvs: php-src /ext/yp yp.c
| From: | Ilia Alshanetsky | Date: | Mon, 31 May 2004 21:01:18 +0000 |
| Subject: | cvs: php-src /ext/yp yp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27528@lists.php.net to get a copy of this message | ||
iliaa Mon May 31 17:01:18 2004 EDT
Modified files:
/php-src/ext/yp yp.c
Log:
Added missing argument check.
http://cvs.php.net/diff.php/php-src/ext/yp/yp.c?r1=1.44&r2=1.45&ty=u
Index: php-src/ext/yp/yp.c
diff -u php-src/ext/yp/yp.c:1.44 php-src/ext/yp/yp.c:1.45
--- php-src/ext/yp/yp.c:1.44 Mon Apr 26 16:14:09 2004
+++ php-src/ext/yp/yp.c Mon May 31 17:01:18 2004
@@ -16,7 +16,7 @@
| Fredrik Ohrn |
+----------------------------------------------------------------------+
*/
-/* $Id: yp.c,v 1.44 2004/04/26 20:14:09 iliaa Exp $ */
+/* $Id: yp.c,v 1.45 2004/05/31 21:01:18 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_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (YP(error)));