Good point; fix going in now... --Wez.
On 16/03/02, "Marcus Börger" <[EMAIL PROTECTED]> wrote: > 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" <[EMAIL PROTECTED]> 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) -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php