summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-08-13 07:55:39 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-08-13 07:55:39 +0000
commit4d11d90880e63aaf125d09140775efdb287b9704 (patch)
tree00ed223eb953c2286b1b557548fbc4f73000f55c /ext/odbc
parent5b2227ea80b0fc5be46bfbdd9dd5ce4ac7825717 (diff)
downloadphp-git-4d11d90880e63aaf125d09140775efdb287b9704.tar.gz
Track down a few more functions that don't check for 0 args and use
faster mechanism
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/php_odbc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 951e35a161..14dc9093a1 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -711,8 +711,9 @@ PHP_FUNCTION(odbc_close_all)
int i;
int nument;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE)
- return;
+ if (ZEND_NUM_ARGS() != 0) {
+ WRONG_PARAM_COUNT;
+ }
nument = zend_hash_next_free_element(&EG(regular_list));