From: Antony Dovgal Date: Wed, 31 Dec 2008 15:48:18 +0000 (+0000) Subject: MFH: don't use WRONG_PARAM_COUNT with new param parsing API X-Git-Tag: php-5.3.0beta1~324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85af2a05db8560500dcc6d073e22f2ef500eab42;p=php MFH: don't use WRONG_PARAM_COUNT with new param parsing API --- diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 8a61d1d321..a7defc2e96 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -115,7 +115,7 @@ PHP_FUNCTION(gethostname) char buf[4096]; if (zend_parse_parameters_none() == FAILURE) { - WRONG_PARAM_COUNT; + return; } if (gethostname(buf, sizeof(buf) - 1)) {