From eb8c6b4696629ceecfaa2e83abd1faabd586fd1d Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 21 Mar 2002 20:16:22 +0000 Subject: [PATCH] -removed old streams test code --- ext/exif/exif.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 02bc5da59c..92e00c12a2 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -2970,31 +2970,6 @@ int exif_read_file(image_info_type *ImageInfo, char *FileName, int read_thumbnai php_error(E_NOTICE,"open stream is file: %d", ImageInfo->FileSize); } } else { - -/* * - php_stream *mem_stream; - mem_stream = php_stream_temp_create(TEMP_STREAM_DEFAULT, 20000000); - ImageInfo->FileSize = php_stream_copy_to_stream(ImageInfo->infile, mem_stream, PHP_STREAM_COPY_ALL); - php_stream_close(ImageInfo->infile); - ImageInfo->infile = mem_stream; -* -* Use one of these two versions if not using STREAM_MUST_SEEK in php_stream_open_wrapper -* - php_stream *mem_stream; - switch(php_stream_make_seekable( ImageInfo->infile, &mem_stream)) - { - default: - case PHP_STREAM_FAILED: - case PHP_STREAM_CRITICAL: - php_stream_close(ImageInfo->infile); - return FALSE; - case PHP_STREAM_UNCHANGED: - case PHP_STREAM_RELEASED: - ImageInfo->infile = mem_stream; - break; - } -*/ -/* end of second */ if ( !ImageInfo->FileSize) { php_stream_seek(ImageInfo->infile,0,SEEK_END); ImageInfo->FileSize = php_stream_tell(ImageInfo->infile); -- 2.40.0