Re: Re: php_copy_file
| From: | Wez Furlong | Date: | Sat, 16 Mar 2002 01:53:34 +0000 |
| Subject: | Re: Re: php_copy_file | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81313@lists.php.net to get a copy of this message | ||
I'm not quite sure I know what you mean...
Do you mean that if maxlen is -1, the function should not do anything?
--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)