From: Stanislav Malyshev Date: Sun, 13 Mar 2005 17:48:12 +0000 (+0000) Subject: Do not convert ZEND_HANDLE_FP to ZEND_HANDLE_STREAM but allow using reader/closer X-Git-Tag: php-5.0.4RC1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07bcc295c41d26a4e4c70f8f9d248374084db478;p=php Do not convert ZEND_HANDLE_FP to ZEND_HANDLE_STREAM but allow using reader/closer on it --- diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c index 1e307591d9..b163ff8863 100644 --- a/Zend/zend_stream.c +++ b/Zend/zend_stream.c @@ -79,11 +79,10 @@ ZEND_API int zend_stream_fixup(zend_file_handle *file_handle TSRMLS_DC) return FAILURE; } - /* promote to stream */ + /* make compatible with stream */ file_handle->handle.stream.handle = file_handle->handle.fp; file_handle->handle.stream.reader = zend_stream_stdio_reader; file_handle->handle.stream.closer = zend_stream_stdio_closer; - file_handle->type = ZEND_HANDLE_STREAM; file_handle->handle.stream.interactive = isatty(fileno((FILE *)file_handle->handle.stream.handle)); }