actually reset stream position when finished

This commit is contained in:
Antony Dovgal 2008-09-13 21:32:15 +00:00
parent a32388a9dc
commit 43034db4c1

View File

@ -499,6 +499,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;
}