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

index 68db592597254b2044fa0fa29a068837e9b205cd..d793335e7d6534b5babcbf863010208be14d7a62 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)) {