Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45321 invoked by uid 1010); 9 Mar 2005 15:50:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45270 invoked from network); 9 Mar 2005 15:50:46 -0000 Received: from unknown (HELO batima-electronic.com) (127.0.0.1) by localhost with SMTP; 9 Mar 2005 15:50:46 -0000 X-Host-Fingerprint: 64.233.184.204 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.204:63196] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id DE/FA-53294-65B1F224 for ; Wed, 09 Mar 2005 10:50:46 -0500 Received: by wproxy.gmail.com with SMTP id 37so212429wra for ; Wed, 09 Mar 2005 07:50:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=tdtv/6CrgxDHAELgRiicOMq2/8WokMbBpFyg2eDgQ4A5XQXijxUtDJRGyF0/C/KhPfAOxmA2CL1vD2musty083omXJ6iTH2Sou4XxBZ3E7kAd5q4bK/RQxEiy1GOHZeT5kSrkGCV24Sv6nMVWcIkJVZR+QKn2I1BsYXS0LZ6rqI= Received: by 10.54.45.14 with SMTP id s14mr861235wrs; Wed, 09 Mar 2005 07:50:43 -0800 (PST) Received: by 10.54.44.57 with HTTP; Wed, 9 Mar 2005 07:50:43 -0800 (PST) Message-ID: <4e89b426050309075047ce556c@mail.gmail.com> Date: Wed, 9 Mar 2005 10:50:43 -0500 Reply-To: Wez Furlong To: Stanislav Malyshev Cc: PHP Development In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <4e89b4260503090718503f9a5@mail.gmail.com> <4e89b42605030907315a85ce74@mail.gmail.com> Subject: Re: [PHP-DEV] zend_stream_fixup From: kingwez@gmail.com (Wez Furlong) 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 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 >