Home
last modified time | relevance | path

Searched refs:ZEND_MMAP_AHEAD (Results 1 – 8 of 8) sorted by relevance

/PHP-7.3/Zend/
H A Dzend_stream.c78 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 Dzend_stream.h35 #define ZEND_MMAP_AHEAD 32 macro
H A Dzend_ini_scanner.l68 #if ZEND_MMAP_AHEAD < (YYMAXFILL + 1)
69 # error ZEND_MMAP_AHEAD should be greater than YYMAXFILL
H A Dzend_language_scanner.l52 #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 Dzend_language_scanner.c54 #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 Dzend_ini_scanner.c71 #if ZEND_MMAP_AHEAD < (YYMAXFILL + 1)
72 # error ZEND_MMAP_AHEAD should be greater than YYMAXFILL
/PHP-7.3/ext/standard/
H A Dbasic_functions.c6111 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 Dmain.c1596 && ((len - 1) % page_size) <= page_size - ZEND_MMAP_AHEAD in php_stream_open_for_zend_ex()

Completed in 89 milliseconds