# auto-disable seekable flag

- Thread: https://externals.io/message/18707
- Original archive: https://news-web.php.net/php.internals/18707
- Started by Michael Spector on 2005-09-08T11:00:46+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #18707 — Michael Spector — 2005-09-08T11:00:46+00:00

URL: https://externals.io/message/18707#18707

Hi,

I've encountered change in following code behaviour (somewhere between 5.1.0b3 and 5.1.0-HEAD):

posix_isatty (STDOUT);

Now it produces this warning: cannot seek on a pipe

The attached patch adds PHP_STREAM_FLAG_NO_SEEK to the stream flags, if it detects whether
the file descriptor is not seekable.

Thanks.

-- 
Best regards,

Michael
