--- PHP_5_3/main/streams/streams.c 2011/06/05 21:44:34 311848 +++ PHP_5_3/main/streams/streams.c 2011/06/05 21:57:01 311849 @@ -1184,7 +1184,7 @@ } /* emulate forward moving seeks with reads */ - if (whence == SEEK_CUR && offset > 0) { + if (whence == SEEK_CUR && offset >= 0) { char tmp[1024]; size_t didread; while(offset > 0) {