Re: zend_stream_fixup

From: Date: Thu, 10 Mar 2005 18:15:55 +0000
Subject: Re: zend_stream_fixup
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-15359@lists.php.net to get a copy of this message
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

« previous php.internals (#15359) next »