fileno() needs a FILE * here, and at least on FreeBSD with gcc-2.95.3

it is unable to figure out that this is indeed a FILE * and hence it
won't compile without this cast.
This commit is contained in:
Rasmus Lerdorf 2003-02-18 22:29:27 +00:00
parent b8f518a451
commit 891835e7aa

View file

@ -85,7 +85,7 @@ int zend_stream_fixup(zend_file_handle *file_handle TSRMLS_DC)
file_handle->handle.stream.closer = zend_stream_stdio_closer;
file_handle->type = ZEND_HANDLE_STREAM;
file_handle->handle.stream.interactive = isatty(fileno(file_handle->handle.stream.handle));
file_handle->handle.stream.interactive = isatty(fileno((FILE *)file_handle->handle.stream.handle));
}
return SUCCESS;
}