Searched refs:ZEND_MMAP_AHEAD (Results 1 – 8 of 8) sorted by relevance
/PHP-7.3/Zend/ |
H A D | zend_stream.c | 78 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap() 223 ((size - 1) % page_size) <= page_size - ZEND_MMAP_AHEAD) { in zend_stream_fixup() 225 … *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0); in zend_stream_fixup() 242 file_handle->handle.stream.mmap.buf = *buf = safe_emalloc(1, size, ZEND_MMAP_AHEAD); in zend_stream_fixup() 260 if (size && remain < ZEND_MMAP_AHEAD) { in zend_stream_fixup() 261 *buf = safe_erealloc(*buf, size, 1, ZEND_MMAP_AHEAD); in zend_stream_fixup() 267 *buf = erealloc(*buf, ZEND_MMAP_AHEAD); in zend_stream_fixup() 271 if (ZEND_MMAP_AHEAD) { in zend_stream_fixup() 272 …set(file_handle->handle.stream.mmap.buf + file_handle->handle.stream.mmap.len, 0, ZEND_MMAP_AHEAD); in zend_stream_fixup()
|
H A D | zend_stream.h | 35 #define ZEND_MMAP_AHEAD 32 macro
|
H A D | zend_ini_scanner.l | 68 #if ZEND_MMAP_AHEAD < (YYMAXFILL + 1) 69 # error ZEND_MMAP_AHEAD should be greater than YYMAXFILL
|
H A D | zend_language_scanner.l | 52 #define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } } 74 #if ZEND_MMAP_AHEAD < YYMAXFILL 75 # error ZEND_MMAP_AHEAD should be greater than or equal to YYMAXFILL 689 Z_STR_P(str) = zend_string_extend(Z_STR_P(str), old_len + ZEND_MMAP_AHEAD, 0); in zend_prepare_string_for_scanning() 691 memset(Z_STRVAL_P(str) + old_len, 0, ZEND_MMAP_AHEAD + 1); in zend_prepare_string_for_scanning()
|
H A D | zend_language_scanner.c | 54 #define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } } 77 #if ZEND_MMAP_AHEAD < YYMAXFILL 78 # error ZEND_MMAP_AHEAD should be greater than or equal to YYMAXFILL 692 Z_STR_P(str) = zend_string_extend(Z_STR_P(str), old_len + ZEND_MMAP_AHEAD, 0); in zend_prepare_string_for_scanning() 694 memset(Z_STRVAL_P(str) + old_len, 0, ZEND_MMAP_AHEAD + 1); in zend_prepare_string_for_scanning()
|
H A D | zend_ini_scanner.c | 71 #if ZEND_MMAP_AHEAD < (YYMAXFILL + 1) 72 # error ZEND_MMAP_AHEAD should be greater than YYMAXFILL
|
/PHP-7.3/ext/standard/ |
H A D | basic_functions.c | 6111 if (INT_MAX - str_len < ZEND_MMAP_AHEAD) { 6124 string = (char *) emalloc(str_len + ZEND_MMAP_AHEAD); 6126 memset(string + str_len, 0, ZEND_MMAP_AHEAD);
|
/PHP-7.3/main/ |
H A D | main.c | 1596 && ((len - 1) % page_size) <= page_size - ZEND_MMAP_AHEAD in php_stream_open_for_zend_ex()
|
Completed in 89 milliseconds