Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15321 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95028 invoked by uid 1010); 9 Mar 2005 15:18:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94209 invoked from network); 9 Mar 2005 15:18:23 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 9 Mar 2005 15:18:23 -0000 X-Host-Fingerprint: 64.233.184.198 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.198:11617] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 7B/B6-53294-CB31F224 for ; Wed, 09 Mar 2005 10:18:20 -0500 Received: by wproxy.gmail.com with SMTP id 37so204110wra for ; Wed, 09 Mar 2005 07:18:17 -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=fn6eMt9GF7tPymTBi39M091cjs55nATwfxHGo8AXc+BV9oxJhxyp1mE6s7orgNLYQCa5p4JlkesD6RAkqLu9Pw8G7WhMVBKq7y+0q7tcT418kzHm8MVqTlBdWxdVuU6hXFy0AfXt3z6+djq8JXu42byVIDFDlOYYoH+DvAO1Wc4= Received: by 10.54.4.24 with SMTP id 24mr718707wrd; Wed, 09 Mar 2005 07:18:17 -0800 (PST) Received: by 10.54.44.57 with HTTP; Wed, 9 Mar 2005 07:18:17 -0800 (PST) Message-ID: <4e89b4260503090718503f9a5@mail.gmail.com> Date: Wed, 9 Mar 2005 10:18:17 -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: Subject: Re: [PHP-DEV] zend_stream_fixup From: kingwez@gmail.com (Wez Furlong) The idea is that the zend engine should only call the functions in zend_stream.c to access the script input. The fixup function is designed to promote FILE* or file descriptors up to something compatible with its stdio stream reading functions. Filenames are handed out to PHP and opened up using the streams layer. The rule for the fixup function is that it either errors out, or sets up the zend_file_handle so that zend_stream_XXX functions will work. --Wez. On Wed, 9 Mar 2005 12:32:54 +0200 (IST), Stanislav Malyshev wrote: > Can somebody explain me what zend_stream_fixup() function does? I see that > it I give it ZEND_HANDLE_FP it converts it to ZEND_HANDLE_STREAM, but the > handle of the stream does not become php_stream *, it still is FILE *. > Does it mean that when I have ZEND_HANDLE_STREAM, the handle basically can > be both FILE * and php_stream *? How can I distinguish between these > situations? > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com 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 > >