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/odbc/php_odbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/odbc/php_odbc.c') diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index ebee68cdae..1768b00738 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -782,8 +782,8 @@ PHP_FUNCTION(odbc_close_all) int i; int nument; - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } nument = zend_hash_next_free_element(&EG(regular_list)); -- cgit v1.2.1