summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
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/standard/dns.c
parent1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff)
downloadphp-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index 8e481af1cd..ac366126ba 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -57,7 +57,7 @@ PHP_FUNCTION(gethostbyaddr)
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
@@ -97,7 +97,7 @@ PHP_FUNCTION(gethostbyname)
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
@@ -117,7 +117,7 @@ PHP_FUNCTION(gethostbynamel)
struct in_addr in;
int i;
- if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
+ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
@@ -172,7 +172,7 @@ PHP_FUNCTION(checkdnsrr)
#endif
u_char ans[MAXPACKET];
- switch (ARG_COUNT(ht)) {
+ switch (ZEND_NUM_ARGS()) {
case 1:
if (zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
@@ -235,7 +235,7 @@ PHP_FUNCTION(getmxrr)
u_char *cp,*end;
int i;
- switch(ARG_COUNT(ht)) {
+ switch(ZEND_NUM_ARGS()) {
case 2:
if (zend_get_parameters(ht, 2, &host, &mx_list) == FAILURE) {
WRONG_PARAM_COUNT;