From 84a8bb038a26e254d6608662b16c254920388913 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 10 Mar 2008 22:15:36 +0000 Subject: MFH: New way for check void parameters --- ext/msql/php_msql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/msql/php_msql.c') diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c index 14b3805119..de5920cfa4 100644 --- a/ext/msql/php_msql.c +++ b/ext/msql/php_msql.c @@ -747,8 +747,8 @@ PHP_FUNCTION(msql_list_fields) Returns the text of the error message from previous mSQL operation */ PHP_FUNCTION(msql_error) { - if (ZEND_NUM_ARGS()) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } RETURN_STRING(msqlErrMsg,1); } -- cgit v1.2.1