At 03:56 16.03.2002, Wez Furlong wrote:
>I had thought about it, but it's making the streams abstraction do
>too much; it will have to remember too much information, and what if
>the data changes each time the stream is opened?

YES it has to remember much and YES streams may change on next
open - you're right. Was just a quick idea while changing image.c, whether
or not i would get able to read more from tiff files.


>If you really need to seek around in a stream that might not support
>it, you should open a temporary stream (php_stream_fopen_tmpfile())
>and then php_stream_copy_to_stream(src, tmp, PHP_STREAM_COPY_ALL)
>to get a copy on disk.

Do we have a memory stream already? Anybody like this idea?


>When do you need to do this? Well, a general rule is when
>php_stream_is(src, PHP_STREAM_IS_STDIO) is false.
>
>--Wez.
>
>On 16/03/02, "Marcus Börger" <[EMAIL PROTECTED]> wrote:
> > What do you think about havin php_stream_seek emulate
> > other methods than forward seeking? We could do this by
> > opening the stream again if something before current
> > position has to be read...
> >
> > That would allow using streams in every file based function!
> >
> > Of cause we should have flags that we are about to emulate
> > and it should be a feature that can be turned off or even better
> > one that can be enabled by function call....
> >
> > marcus
> >
> > At 22:12 15.03.2002, Wez Furlong wrote:
> > >Well, PHP finally supports fopen("https://...";) :-)
> > >
> > >Please please please test the following things in particular
> > >as I can't compile them or verify them here:
> > >
> > >hyperwave:
> > >hw_new_document_from_file
> > >
> > >gd:
> > >functions that create images from files.
> > >In particular, try creating from "wrapped" files over
> > >http, ftp etc.
> > >
> > >pfsockopen()
> > >copy() - particularly with "wrapped" source/dest
> > >gzopen (and friends)
> > >gzfile
> > >
> > >If you have a system where HAVE_FLUSHIO is important,
> > >please let me know if plain files work correctly when
> > >switching between read and write.
> > >
> > >If you have things in Pear/PECL or a third party
> > >extension that used the old FP_XXX or php_file_le_fopen(),
> > >please contact me and I can help you update your code for
> > >streams (it's easy).
> > >
> > >I'll check back in a couple of hours to see if anyone
> > >has found show stoppers; otherwise I'll be signing off
> > >till the morning (it is Friday after all!)
> > >
> > >--Wez.
> > >
> > >
> > >--
> > >PHP Development Mailing List <http://www.php.net/>
> > >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to