From 4c0a9448a950b676826ceeb1e203b62361a89dc3 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 31 Dec 2008 15:48:06 +0000 Subject: [PATCH] don't use WRONG_PARAM_COUNT with new param parsing API --- ext/standard/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.50.1