Re: zend_stream_fixup

From: Date: Thu, 10 Mar 2005 20:43:48 +0000
Subject: Re: zend_stream_fixup
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-15361@lists.php.net to get a copy of this message
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 <stas@zend.com> wrote: > WF>>> needs it's own type. Why it can't just handle all file_handle types > WF>>> 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 >

« previous php.internals (#15361) next »