aboutsummaryrefslogtreecommitdiffstats
path: root/main/php/curl-flush.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-14 15:06:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-14 15:08:37 +0000
commit62204a7e4be77192725f28e728641da5be5ed24b (patch)
treeb54a91f52c365fdb3bab2c3a3ffd5e3e9b126e8c /main/php/curl-flush.patch
parent3c471f85eacd8b9d76c98cff4345f3bc84934001 (diff)
downloadaports-62204a7e4be77192725f28e728641da5be5ed24b.tar.bz2
aports-62204a7e4be77192725f28e728641da5be5ed24b.tar.xz
*/php: move php-5.3 to testing and downgrade main/php to 5.2.10
many apps needs 5.2 fixes #165
Diffstat (limited to 'main/php/curl-flush.patch')
-rw-r--r--main/php/curl-flush.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/php/curl-flush.patch b/main/php/curl-flush.patch
new file mode 100644
index 0000000000..14fc31a0bc
--- /dev/null
+++ b/main/php/curl-flush.patch
@@ -0,0 +1,17 @@
+--- /repository/php-src/ext/curl/interface.c 2009/06/15 12:38:11 1.62.2.14.2.57
++++ /repository/php-src/ext/curl/interface.c 2009/06/28 10:00:28 1.62.2.14.2.58
+@@ -1827,6 +1827,14 @@
+ if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.len > 0) {
+ smart_str_0(&ch->handlers->write->buf);
+ 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) {