mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
- label only used when mmap is available
This commit is contained in:
parent
064eda1838
commit
fd583ffa1d
@ -268,8 +268,9 @@ ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t
|
||||
if (ZEND_MMAP_AHEAD) {
|
||||
memset(file_handle->handle.stream.mmap.buf + file_handle->handle.stream.mmap.len, 0, ZEND_MMAP_AHEAD);
|
||||
}
|
||||
|
||||
#if HAVE_MMAP
|
||||
return_mapped:
|
||||
#endif
|
||||
file_handle->type = ZEND_HANDLE_MAPPED;
|
||||
file_handle->handle.stream.mmap.pos = 0;
|
||||
file_handle->handle.stream.mmap.old_handle = file_handle->handle.stream.handle;
|
||||
|
Loading…
Reference in New Issue
Block a user