mirror of
https://github.com/php/php-src.git
synced 2024-09-26 20:37:29 +00:00
- Fixed bug #47152 (gzseek/fseek using SEEK_END produces strange results)
This commit is contained in:
parent
9c2283fe02
commit
2d150236d9
@ -60,6 +60,10 @@ static int php_gziop_seek(php_stream *stream, off_t offset, int whence, off_t *n
|
||||
|
||||
assert(self != NULL);
|
||||
|
||||
if (whence == SEEK_END) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SEEK_END is not supported");
|
||||
return -1;
|
||||
}
|
||||
*newoffs = gzseek(self->gz_file, offset, whence);
|
||||
|
||||
return (*newoffs < 0) ? -1 : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user