Re: zend_stream_fixup

From: Date: Wed, 09 Mar 2005 15:50:43 +0000
Subject: Re: zend_stream_fixup
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-15326@lists.php.net to get a copy of this message
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 <stas@zend.com> 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 > stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 >

« previous php.internals (#15326) next »