From: Antony Dovgal Date: Wed, 31 Dec 2008 15:48:06 +0000 (+0000) Subject: don't use WRONG_PARAM_COUNT with new param parsing API X-Git-Tag: php-5.4.0alpha1~191^2~4692 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c0a9448a950b676826ceeb1e203b62361a89dc3;p=php don't use WRONG_PARAM_COUNT with new param parsing API --- diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 68db592597..d793335e7d 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)) {