summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2005-03-13 17:48:45 +0000
committerStanislav Malyshev <stas@php.net>2005-03-13 17:48:45 +0000
commitdd64e6dedebb81b90e284c6f908b25d827a77277 (patch)
tree1571e1ccf12cf86aec8f3d1ca683d218dcaaaa97
parent5bd7be94a4b08e4bbd83a9192a1572f398530cae (diff)
downloadphp-git-dd64e6dedebb81b90e284c6f908b25d827a77277.tar.gz
Do not convert ZEND_HANDLE_FP to ZEND_HANDLE_STREAM but allow using reader/closer
on it
-rw-r--r--Zend/zend_stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c
index c66fb17668..bf68081b46 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));
}