Skip to content

Commit a7d084b

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix GH-9361: Segmentation fault on script exit
2 parents ae95644 + 6427c4b commit a7d084b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_alloc_sizes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef ZEND_ALLOC_SIZES_H
2020
#define ZEND_ALLOC_SIZES_H
2121

22-
#define ZEND_MM_CHUNK_SIZE (2 * 1024 * 1024) /* 2 MB */
22+
#define ZEND_MM_CHUNK_SIZE ((size_t) (2 * 1024 * 1024)) /* 2 MB */
2323
#define ZEND_MM_PAGE_SIZE (4 * 1024) /* 4 KB */
2424
#define ZEND_MM_PAGES (ZEND_MM_CHUNK_SIZE / ZEND_MM_PAGE_SIZE) /* 512 */
2525
#define ZEND_MM_FIRST_PAGE (1)

0 commit comments

Comments
 (0)