cvs: php4(PHP_4_3) /ext/standard http_fopen_wrapper.c

From: Date: Sat, 08 Feb 2003 01:36:52 +0000
Subject: cvs: php4(PHP_4_3) /ext/standard http_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18486@lists.php.net to get a copy of this message
pollita Fri Feb 7 20:36:52 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/standard http_fopen_wrapper.c Log: MFH(r-1.59) Index: php4/ext/standard/http_fopen_wrapper.c diff -u php4/ext/standard/http_fopen_wrapper.c:1.53.2.3 php4/ext/standard/http_fopen_wrapper.c:1.53.2.4 --- php4/ext/standard/http_fopen_wrapper.c:1.53.2.3 Fri Jan 3 12:19:46 2003 +++ php4/ext/standard/http_fopen_wrapper.c Fri Feb 7 20:36:52 2003 @@ -18,7 +18,7 @@ | Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: http_fopen_wrapper.c,v 1.53.2.3 2003/01/03 17:19:46 iliaa Exp $ */ +/* $Id: http_fopen_wrapper.c,v 1.53.2.4 2003/02/08 01:36:52 pollita Exp $ */ #include "php.h" #include "php_globals.h" @@ -123,8 +123,7 @@ goto out; /* avoid buffering issues while reading header */ - if (options & STREAM_WILL_CAST) - chunk_size = php_stream_set_chunk_size(stream, 1); + chunk_size = php_stream_set_chunk_size(stream, 1); php_stream_context_set(stream, context); @@ -400,8 +399,8 @@ if (stream) { stream->wrapperdata = response_header; php_stream_notify_progress_init(context, 0, file_size); - if (options & STREAM_WILL_CAST) - php_stream_set_chunk_size(stream, chunk_size); + /* Restore original chunk size now that we're done with headers */ + php_stream_set_chunk_size(stream, chunk_size); /* as far as streams are concerned, we are now at the start of * the stream */ stream->position = 0;

« previous php.cvs (#18486) next »