Hi!

Can you tell what exactly you're doing? Why is there any cast in the first
place?

As far as I can see, the include should eventually call
php_stream_open_for_zend_ex, which should give a ZEND_HANDLE_STREAM file
handle that defers reading to _php_stream_read and fsize to
php_zend_stream_fsizer, with no casting involved.

That's a regular include for file, however that one is actually a custom stream handler. I'm not sure yet what led for it to be converted to ZEND_HANDLE_FP, but if we're providing means to do that in the API, it sounds logical that the API shouldn't then require ZEND_HANDLE_FP to be pure file. I.e., if we already saying we're creating non-file FILE* in our code, then our code should be able to process it, shouldn't it?
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

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

Reply via email to