diff options
author | Jani Taskinen <jani@php.net> | 2007-08-08 07:01:49 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2007-08-08 07:01:49 +0000 |
commit | 45e96efd1d513df3cd17c9995438ba6c98108d0b (patch) | |
tree | 2121e35707de2568c10c2d5280ab132cf2d153dc | |
parent | 6aa06fc7fbd0fd000a45d778a7213762516837aa (diff) | |
download | php-git-45e96efd1d513df3cd17c9995438ba6c98108d0b.tar.gz |
MFH: This is what we get for not doing MFH..or MFB..a mess
-rwxr-xr-x | main/streams/streams.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 894bd689eb..ae45653d55 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1313,11 +1313,11 @@ PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size p = php_stream_mmap_range(src, php_stream_tell(src), maxlen, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped); if (p) { - size_t written = php_stream_write(dest, p, mapped); + mapped = php_stream_write(dest, p, mapped); php_stream_mmap_unmap(src); - return written; + return mapped; } } |