summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-10 22:15:36 (GMT)
committerFelipe Pena <felipe@php.net>2008-03-10 22:15:36 (GMT)
commit84a8bb038a26e254d6608662b16c254920388913 (patch)
treeb57b590da90a01ff306fbef1a6baa794ebe0571e /ext/odbc
parentcc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff)
downloadphp-84a8bb038a26e254d6608662b16c254920388913.tar.gz
MFH: New way for check void parameters
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/php_odbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index ebee68c..1768b00 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));