1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00

Simplify original fix for bug #33475

This commit is contained in:
Ilia Alshanetsky
2009-06-15 12:37:37 +00:00
parent 4a110443df
commit bb55de47cd
+1 -4
View File
@@ -2047,14 +2047,11 @@ PHP_FUNCTION(curl_exec)
RETURN_FALSE;
}
ch->uses++;
if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.len > 0) {
--ch->uses;
smart_str_0(&ch->handlers->write->buf);
RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1);
}
--ch->uses;
if (ch->handlers->write->method == PHP_CURL_RETURN) {
RETURN_EMPTY_STRING();
} else {