Why do you need to stat it?
You can't rely on stat working.

--Wez.


On Wed, 9 Mar 2005 17:47:13 +0200 (IST), Stanislav Malyshev
<[EMAIL PROTECTED]> wrote:
> WF>>What are you trying to do exactly?
> 
> For example, I try to stat a file_handle (in case it's possible - i.e.
> either it's a file or stream operator allows doing stat on it). Current
> way of doing things guarantees crash on STREAM handle whatever I do,
> since there's no way to know is this STREAM a FILE * (and thus one should
> fstat) or php_stream * (and thus one should use stream ops). It wasn't
> like this before.
> 
> WF>>The engine only needs to read from such a file handle and feed that
> WF>>data into its lexer and parser.
> 
> Depends on what do you mean by "the engine". Are you claiming that there
> is not and should not be any way to do anything but reading and closing
> the file_handle? It certainly wasn't so before the fixup appeared.
> --
> Stanislav Malyshev, Zend Products Engineer
> [EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115
>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to