Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10843 invoked by uid 1010); 10 Mar 2005 20:43:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10732 invoked from network); 10 Mar 2005 20:43:56 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 10 Mar 2005 20:43:56 -0000 X-Host-Fingerprint: 64.233.184.198 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.198:28813] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 87/74-53294-981B0324 for ; Thu, 10 Mar 2005 15:43:54 -0500 Received: by wproxy.gmail.com with SMTP id 37so558835wra for ; Thu, 10 Mar 2005 12:43:50 -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=E03g41ndBNn4rv8STTs0ZmLI/zkdeeYZvhpDhZQK+kD4dJBn5RMO3e5UUJ/F8HJoukTln/moGefeZcgSbxaEgnEoqAPnlNhwjzg92GHRQsbHz07E+1KK3IZr1pZML7UfRrGAg6SNeHfvA/ruk/VMkCwn7HtXuJaUWEqa3dPQS3Q= Received: by 10.54.54.16 with SMTP id c16mr737374wra; Thu, 10 Mar 2005 12:43:48 -0800 (PST) Received: by 10.54.44.57 with HTTP; Thu, 10 Mar 2005 12:43:48 -0800 (PST) Message-ID: <4e89b42605031012432aac07ae@mail.gmail.com> Date: Thu, 10 Mar 2005 15:43:48 -0500 Reply-To: Wez Furlong To: Stanislav Malyshev Cc: Zeev Suraski , PHP Development In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <4e89b426050309075047ce556c@mail.gmail.com> <5.1.0.14.2.20050310154031.0678e880@localhost> <787679020.20050310152340@marcus-boerger.de> <4e89b42605031007587e28c846@mail.gmail.com> <4e89b42605031010124c2a4092@mail.gmail.com> Subject: Re: [PHP-DEV] zend_stream_fixup From: kingwez@gmail.com (Wez Furlong) http://viewcvs.php.net/viewcvs.cgi/php-src/main/main.c.diff?r1=1.526&r2=1.527 On Thu, 10 Mar 2005 20:15:55 +0200 (IST), Stanislav Malyshev wrote: > WF>>> needs it's own type. Why it can't just handle all file_handle types just > WF>>> like any other functions do. I would understand if there were ten function > WF>>> like this - but so far we have one. > WF>> > WF>>You have all the different things that php streams provides as well, > WF>>which is why those functions exist. > > No, you have not! That's whole point - you can not use STREAM handle as > PHP stream, because handle there may be FILE * or php_stream * - and you > have no way to know which it is! > > WF>>Right, and that causes the ZE to have a circular dep on PHP, which is > WF>>something that Zend didn't want in the past. > > How is that? I don't see any dependency on PHP that converting FP to > STREAM removes. Explain me, if I remove that conversion and put instead > an if into zend_stream_read that would do the same thing - how it > suddently would become dependant on PHP? > > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 >