pajoye Sat Jun 27 21:20:25 2009 UTC Modified files: /php-src/ext/curl interface.c Log: - fix regression introduced by the fix for #48518 (Ilia, Rasmus) http://cvs.php.net/viewvc.cgi/php-src/ext/curl/interface.c?r1=1.173&r2=1.174&diff_format=u Index: php-src/ext/curl/interface.c diff -u php-src/ext/curl/interface.c:1.173 php-src/ext/curl/interface.c:1.174 --- php-src/ext/curl/interface.c:1.173 Mon Jun 15 12:38:57 2009 +++ php-src/ext/curl/interface.c Sat Jun 27 21:20:25 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interface.c,v 1.173 2009/06/15 12:38:57 iliaa Exp $ */ +/* $Id: interface.c,v 1.174 2009/06/27 21:20:25 pajoye Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -2118,6 +2118,14 @@ RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); } + /* flush the file handle, so any remaining data is synched to disk */ + if (ch->handlers->write->method == PHP_CURL_FILE && ch->handlers->write->fp) { + fflush(ch->handlers->write->fp); + } + if (ch->handlers->write_header->method == PHP_CURL_FILE && ch->handlers->write_header->fp) { + fflush(ch->handlers->write_header->fp); + } + if (ch->handlers->write->method == PHP_CURL_RETURN) { RETURN_EMPTY_STRING(); } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php