auto-disable seekable flag

php.internals

Michael Spector

20 years ago
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