summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-16 02:48:35 +0000
committerWez Furlong <wez@php.net>2002-03-16 02:48:35 +0000
commit636829345ea4ce06766b55b43adfd2b47628fada (patch)
treeb492c19733f5331e0b56f2c0fb6793af26716514 /ext/standard/file.c
parent94b6c6e87fe11ba9e4e0b28dc9eb42f775a32820 (diff)
downloadphp-git-636829345ea4ce06766b55b43adfd2b47628fada.tar.gz
Allow php_stream_copy_to_stream to do nothing when used with code
that calculates a max length of zero. (Thanks again Marcus).
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 88b1798c26..5734db3a1f 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1658,7 +1658,7 @@ PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC)
NULL TSRMLS_CC);
if (srcstream && deststream)
- ret = php_stream_copy_to_stream(srcstream, deststream, 0) == 0 ? FAILURE : SUCCESS;
+ ret = php_stream_copy_to_stream(srcstream, deststream, PHP_STREAM_COPY_ALL) == 0 ? FAILURE : SUCCESS;
if (srcstream)
php_stream_close(srcstream);