summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-05-31 21:01:29 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-05-31 21:01:29 +0000
commit9e970ef9a8b079b6e315828911ede1149defdbe6 (patch)
tree50d8aa429b3ac6e19412ead09bfb5f8b54acc765 /ext
parent22dfb88bf141a6227e9df0a838c10a606b706698 (diff)
downloadphp-git-9e970ef9a8b079b6e315828911ede1149defdbe6.tar.gz
Added missing argument check.
Diffstat (limited to 'ext')
-rw-r--r--ext/yp/yp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/yp/yp.c b/ext/yp/yp.c
index d8979a4bd5..4b2005429b 100644
--- a/ext/yp/yp.c
+++ b/ext/yp/yp.c
@@ -78,6 +78,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)));
RETURN_FALSE;