]>
Commit | Line | Data |
---|---|---|
fb98beff ER |
1 | --- PHP_5_3/main/streams/streams.c 2011/06/05 21:44:34 311848 |
2 | +++ PHP_5_3/main/streams/streams.c 2011/06/05 21:57:01 311849 | |
3 | @@ -1184,7 +1184,7 @@ | |
4 | } | |
5 | ||
6 | /* emulate forward moving seeks with reads */ | |
7 | - if (whence == SEEK_CUR && offset > 0) { | |
8 | + if (whence == SEEK_CUR && offset >= 0) { | |
9 | char tmp[1024]; | |
10 | size_t didread; | |
11 | while(offset > 0) { |