From 8209f891a4099c55eb49b3993d7ca14fe72dedd9 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sat, 13 Sep 2008 21:32:21 +0000 Subject: [PATCH] MFH --- ext/fileinfo/fileinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c index 29980c2f9b..729f0ae988 100644 --- a/ext/fileinfo/fileinfo.c +++ b/ext/fileinfo/fileinfo.c @@ -494,6 +494,8 @@ static void _php_finfo_get_type(INTERNAL_FUNCTION_PARAMETERS, int mode, int mime php_stream_seek(stream, 0, SEEK_SET); ret_val = (char *) magic_stream(magic, stream); + + php_stream_seek(stream, streampos, SEEK_SET); break; } -- 2.40.0