summaryrefslogtreecommitdiff
path: root/ext/dbase
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-05 19:47:54 +0000
committerAndi Gutmans <andi@php.net>2000-06-05 19:47:54 +0000
commit3701bc420774c1b689f8a43f0ed891c99fea3cd2 (patch)
tree9bbc5d33a0a90e290889dbca3d8fa9bb1dfe38a9 /ext/dbase
parent1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff)
downloadphp-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/dbase')
-rw-r--r--ext/dbase/dbase.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c
index 0b604199c3..c6d7543b78 100644
--- a/ext/dbase/dbase.c
+++ b/ext/dbase/dbase.c
@@ -117,7 +117,7 @@ PHP_FUNCTION(dbase_open) {
PLS_FETCH();
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht,2,&dbf_name,&options)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 2 || getParameters(ht,2,&dbf_name,&options)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string(dbf_name);
@@ -150,7 +150,7 @@ PHP_FUNCTION(dbase_close) {
int dbh_type;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -173,7 +173,7 @@ PHP_FUNCTION(dbase_numrecords) {
int dbh_type;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -195,7 +195,7 @@ PHP_FUNCTION(dbase_numfields) {
int dbh_type;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -217,7 +217,7 @@ PHP_FUNCTION(dbase_pack) {
int dbh_type;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || getParameters(ht,1,&dbh_id)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -246,7 +246,7 @@ PHP_FUNCTION(dbase_add_record) {
int i;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht,2,&dbh_id,&fields)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 2 || getParameters(ht,2,&dbh_id,&fields)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -315,7 +315,7 @@ PHP_FUNCTION(dbase_replace_record)
int i;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 3 || getParameters(ht,3,&dbh_id,&fields,&recnum)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 3 || getParameters(ht,3,&dbh_id,&fields,&recnum)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -378,7 +378,7 @@ PHP_FUNCTION(dbase_delete_record) {
int dbh_type;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht,2,&dbh_id,&record)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 2 || getParameters(ht,2,&dbh_id,&record)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -415,7 +415,7 @@ PHP_FUNCTION(dbase_get_record) {
size_t cursize = 0;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht,2,&dbh_id,&record)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 2 || getParameters(ht,2,&dbh_id,&record)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -498,7 +498,7 @@ PHP_FUNCTION(dbase_get_record_with_names) {
char *data, *fnp, *str_value;
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht,2,&dbh_id,&record)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 2 || getParameters(ht,2,&dbh_id,&record)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
@@ -576,7 +576,7 @@ PHP_FUNCTION(dbase_create) {
PLS_FETCH();
DBase_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht,2,&filename,&fields)==FAILURE) {
+ if (ZEND_NUM_ARGS() != 2 || getParameters(ht,2,&filename,&fields)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string(filename);