Re: cvs: php4 /ext/standard streamsfuncs.c
| From: | Wez Furlong | Date: | Sat, 19 Apr 2003 10:34:51 +0000 |
| Subject: | Re: cvs: php4 /ext/standard streamsfuncs.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-20381@lists.php.net to get a copy of this message | ||
The purpose of stream_copy_to_stream() is just that; copy data from one
stream to another, with an optional length constraint.
I don't like the idea of overloading copy() to do this, and I don't like
overloading stream_copy_to_stream() to work like copy().
If we keep these functions simple, there is less that can go wrong :)
--Wez.
On Sat, 19 Apr 2003, Moriyoshi Koizumi wrote:
> IMO we can deprecate stream_copy_to_stream() and integrate the
> implementation to copy().
>
> Moriyoshi
>
> "Sara Golemon" <php@alphaweb.net> wrote:
>
> > pollita Fri Apr 18 22:47:16 2003 EDT
> >
> > Modified files:
> > /php4/ext/standard streamsfuncs.c
> > Log:
> > Let stream_copy_to_stream() accept either stream resource or filename/url string. If
> > filename, open the file, do the copy, then close it.