Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15325 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41864 invoked by uid 1010); 9 Mar 2005 15:47:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41777 invoked from network); 9 Mar 2005 15:47:33 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 9 Mar 2005 15:47:33 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:48061] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 90/AA-53294-48A1F224 for ; Wed, 09 Mar 2005 10:47:17 -0500 Received: (qmail 6532 invoked from network); 9 Mar 2005 15:47:13 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 9 Mar 2005 15:47:13 -0000 Date: Wed, 9 Mar 2005 17:47:13 +0200 (IST) X-X-Sender: frodo@shire.zend.office To: Wez Furlong cc: PHP Development In-Reply-To: <4e89b42605030907315a85ce74@mail.gmail.com> Message-ID: References: <4e89b4260503090718503f9a5@mail.gmail.com> <4e89b42605030907315a85ce74@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] zend_stream_fixup From: stas@zend.com (Stanislav Malyshev) 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