summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-03-21 20:16:22 +0000
committerMarcus Boerger <helly@php.net>2002-03-21 20:16:22 +0000
commiteb8c6b4696629ceecfaa2e83abd1faabd586fd1d (patch)
tree547630a0cd62b13223a54f3091573e00c31aa60c /ext/exif
parent5b495616bd17c872f2cb37076361e234e78cb5c5 (diff)
downloadphp-git-eb8c6b4696629ceecfaa2e83abd1faabd586fd1d.tar.gz
-removed old streams test code
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/exif.c25
1 files changed, 0 insertions, 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);