The idea is that the zend engine should only call the functions in zend_stream.c to access the script input. The fixup function is designed to promote FILE* or file descriptors up to something compatible with its stdio stream reading functions. Filenames are handed out to PHP and opened up using the streams layer.
The rule for the fixup function is that it either errors out, or sets up the zend_file_handle so that zend_stream_XXX functions will work. --Wez. On Wed, 9 Mar 2005 12:32:54 +0200 (IST), Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Can somebody explain me what zend_stream_fixup() function does? I see that > it I give it ZEND_HANDLE_FP it converts it to ZEND_HANDLE_STREAM, but the > handle of the stream does not become php_stream *, it still is FILE *. > Does it mean that when I have ZEND_HANDLE_STREAM, the handle basically can > be both FILE * and php_stream *? How can I distinguish between these > situations? > -- > Stanislav Malyshev, Zend Products Engineer > [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php