Re: streams problem in 5.3
| From: | Stas Malyshev | Date: | Sun, 06 Mar 2011 23:46:44 +0000 |
| Subject: | Re: streams problem in 5.3 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51580@lists.php.net to get a copy of this message | ||
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