mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
b8f518a451
commit
891835e7aa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue