> That I understand. What I do not understand is why this single function
> needs it's own type. Why it can't just handle all file_handle types just
> like any other functions do. I would understand if there were ten function
> like this - but so far we have one.

You have all the different things that php streams provides as well,
which is why those functions exist.
 
> WF>>Look, if you need to stat the damned thing, why not just add a stat
> WF>>method to zend_streams.c ?
> 
> Because stat is not the only thing it is needed and because I think it's
> wrong way to do things. I think the right way is for STREAM to be
> php_stream and for FP to be FP.

Right, and that causes the ZE to have a circular dep on PHP, which is
something that Zend didn't want in the past.

--Wez.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to