mirror of
https://github.com/php/php-src.git
synced 2026-03-28 18:22:42 +01:00
Herr sascha's reccomendation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user