]> granicus.if.org Git - php/commitdiff
MFH: don't use WRONG_PARAM_COUNT with new param parsing API
authorAntony Dovgal <tony2001@php.net>
Wed, 31 Dec 2008 15:48:18 +0000 (15:48 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 31 Dec 2008 15:48:18 +0000 (15:48 +0000)
ext/standard/dns.c

index 8a61d1d3214985e6c59822c9126710c55037b23e..a7defc2e9661c22c3c572299646198426309620b 100644 (file)
@@ -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)) {