At 21:52 18.03.2002, you wrote: > > 2) for seekable streams the copy function should seek to 0 if > > copying all, shouldn't it? > >No: as an example consider some code that is performing an HTTP request. >It might want to store the headers in one stream and the body in another. >So, it would manually loop and store the headers line by line until >it hits the blank line separator and then use copy_to_stream to >stick the rest of the data in the other stream.
Well that seems a good reason! > > > 3) the patch below shows that as expected only one line has to be > > modified in order to use temp-streams instead of temp-files directly. > > But you would have to reenable memory_streams.c. I tried it and it > > worked fine for me. > >I want to do some tests before doing this; but there should be no >problems. I tested it myself with ext/exif and an image with about 70mb because ext/exif does many seeks and mostly small read operations in it. Also it worked with all other test images. Tell me when done, so i can add documentation. marcus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php