summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.c
diff options
context:
space:
mode:
authorJeroen van Wolffelaar <jeroen@php.net>2001-09-25 21:58:48 +0000
committerJeroen van Wolffelaar <jeroen@php.net>2001-09-25 21:58:48 +0000
commitc03328857394bef36ffa9678d33079ad96e4a4e4 (patch)
treec0fb250db3b1bb996fc305bf56c2b74eb6d00935 /ext/ftp/ftp.c
parent158d34c9a57816326e141e88e1409d9f377dc2ea (diff)
downloadphp-git-c03328857394bef36ffa9678d33079ad96e4a4e4.tar.gz
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r--ext/ftp/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index e2da804663..db047110e0 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -449,7 +449,7 @@ ftp_type(ftpbuf_t *ftp, ftptype_t type)
if (ftp == NULL)
return 0;
- if (type == ftp->type)
+ if (type == Z_TYPE_P(ftp))
return 1;
if (type == FTPTYPE_ASCII)
@@ -464,7 +464,7 @@ ftp_type(ftpbuf_t *ftp, ftptype_t type)
if (!ftp_getresp(ftp) || ftp->resp != 200)
return 0;
- ftp->type = type;
+ Z_TYPE_P(ftp) = type;
return 1;
}
@@ -1060,7 +1060,7 @@ ftp_getdata(ftpbuf_t *ftp)
}
data->listener = -1;
data->fd = -1;
- data->type = ftp->type;
+ Z_TYPE_P(data) = Z_TYPE_P(ftp);
/* bind/listen */
if ((fd = socket(PF_INET, SOCK_STREAM, 0)) == -1) {