summaryrefslogtreecommitdiff
path: root/ext/curl/curl.c
diff options
context:
space:
mode:
authorJeroen van Wolffelaar <jeroen@php.net>2001-09-26 22:24:44 +0000
committerJeroen van Wolffelaar <jeroen@php.net>2001-09-26 22:24:44 +0000
commit39e47f5a98fbea95b141c9b385e96ec416619029 (patch)
tree2a895b9da5ec9166638f0c3d8a267e75861834b2 /ext/curl/curl.c
parent99a71e4418f20057048812effa4abaa1613ae67d (diff)
downloadphp-git-39e47f5a98fbea95b141c9b385e96ec416619029.tar.gz
Revert macro-subst, because wasn't necessary here, and those who were
substitued weren't zvals
Diffstat (limited to 'ext/curl/curl.c')
-rw-r--r--ext/curl/curl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c
index f2c888ca98..76c967b516 100644
--- a/ext/curl/curl.c
+++ b/ext/curl/curl.c
@@ -577,7 +577,7 @@ PHP_FUNCTION(curl_init)
}
ch->handlers->write->method = PHP_CURL_STDOUT;
- Z_TYPE_P(ch->handlers->write) = PHP_CURL_ASCII;
+ ch->handlers->write->type = PHP_CURL_ASCII;
ch->handlers->read->method = PHP_CURL_DIRECT;
ch->handlers->write_header->method = PHP_CURL_IGNORE;
@@ -726,7 +726,7 @@ PHP_FUNCTION(curl_setopt)
break;
case CURLOPT_BINARYTRANSFER:
convert_to_long_ex(zvalue);
- Z_TYPE_P(ch->handlers->write) = PHP_CURL_BINARY;
+ ch->handlers->write->type = PHP_CURL_BINARY;
break;
case CURLOPT_WRITEFUNCTION:
zval_add_ref(zvalue);
@@ -874,7 +874,7 @@ PHP_FUNCTION(curl_exec)
}
if (ch->handlers->write->method == PHP_CURL_RETURN) {
- if (Z_TYPE_P(ch->handlers->write) != PHP_CURL_BINARY)
+ if (ch->handlers->write->type != PHP_CURL_BINARY)
smart_str_0(&ch->handlers->write->buf);
RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 0);
}