Re: Re: php_copy_file
| From: | (Marcus Börger) | Date: | Sat, 16 Mar 2002 02:23:29 +0000 |
| Subject: | Re: Re: php_copy_file | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81316@lists.php.net to get a copy of this message | ||
At 02:53 16.03.2002, Wez Furlong wrote:
I'm not quite sure I know what you mean... Do you mean that if maxlen is -1, the function should not do anything?No it should copy until EOF on -1 but do nothing on 0 because zero means zero. marcus
--Wez. On 16/03/02, "Marcus Börger" <520072483730-0001@t-online.de> wrote: At 20:55 15.03.2002, you wrote:php_stream_copy_to_stream(srcstream, deststream, maxlen) If maxlen is 0 it copies until EOF.Should react on -1 otherwise you cannot call the function in code where the length is calculated automatically. Say you have stream a = <length> <data>*<length> read length copy_stream_to_stream(length) now it fails because you expect if (lngth) copy_strwam_to_stream(length)