summaryrefslogtreecommitdiff
path: root/ext/curl/curl.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-07-11 23:03:24 +0000
committerSterling Hughes <sterling@php.net>2001-07-11 23:03:24 +0000
commitfc729b7cd53229b8a540bb82c67941644a2b45be (patch)
tree96c784c51de858167ccaf3385bdf065a4bc47434 /ext/curl/curl.c
parent1e9649b6db3c865fd739e4c5d3a05827719a5169 (diff)
downloadphp-git-fc729b7cd53229b8a540bb82c67941644a2b45be.tar.gz
Herr sascha's reccomendation.
Diffstat (limited to 'ext/curl/curl.c')
-rw-r--r--ext/curl/curl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c
index 7264431d09..f25bed5db9 100644
--- a/ext/curl/curl.c
+++ b/ext/curl/curl.c
@@ -837,8 +837,7 @@ PHP_FUNCTION(curl_exec)
if (ch->handlers->write->method == PHP_CURL_RETURN) {
if (ch->handlers->write->type != PHP_CURL_BINARY)
smart_str_0(&ch->handlers->write->buf);
- RETVAL_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1);
- smart_str_free(&ch->handlers->write->buf);
+ RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 0);
}
RETURN_TRUE;