mirror of
https://github.com/php/php-src.git
synced 2024-09-27 04:47:22 +00:00
actually reset stream position when finished
This commit is contained in:
parent
a32388a9dc
commit
43034db4c1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user