diff --git a/reference/stream/functions/stream-copy-to-stream.xml b/reference/stream/functions/stream-copy-to-stream.xml
index 2e26b6e79ca7..b426fc175447 100644
--- a/reference/stream/functions/stream-copy-to-stream.xml
+++ b/reference/stream/functions/stream-copy-to-stream.xml
@@ -14,14 +14,14 @@
intnulllength&null;intoffset0
-
+
Makes a copy of up to length bytes
- of data from the current position (or from the
- offset position, if specified) in
- from to to. If
- length is &null;, all remaining content in
+ of data from from to to,
+ starting at the current position in from, or at
+ offset if it is greater than 0.
+ If length is &null;, all remaining content in
from will be copied.
-
+
@@ -55,9 +55,16 @@
offset
-
- The offset where to start to copy data
-
+
+ If greater than 0, the position in
+ from, counted from the start of the stream,
+ at which to start copying: from is first moved
+ to that position, as with fseek and
+ SEEK_SET.
+ If 0 (the default) or negative, no seek is
+ performed and copying starts at the current position in
+ from.
+
@@ -115,6 +122,22 @@ echo stream_copy_to_stream($src, $dest2) . " bytes copied to remainder.txt\n";
+
+ &reftitle.notes;
+
+
+ When from is a socket stream in blocking mode,
+ copying stops as soon as no data is received within the stream timeout,
+ even if the end of the stream has not been reached.
+ &false; may then be returned, even though the data read until then has
+ already been written to to.
+ This timeout defaults to
+ default_socket_timeout
+ and can be changed with stream_set_timeout.
+
+
+
+
&reftitle.seealso;