Skip to content

Commit

Permalink
Do not convert ZEND_HANDLE_FP to ZEND_HANDLE_STREAM but allow using r…
Browse files Browse the repository at this point in the history
…eader/closer

on it
  • Loading branch information
smalyshev committed Mar 13, 2005
1 parent 5b80f92 commit 07bcc29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Zend/zend_stream.c
Expand Up @@ -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));
}
Expand Down

0 comments on commit 07bcc29

Please sign in to comment.