From 9d11dba9813a05bd7c4b15cac4163c0160a9d08f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 23 Apr 2025 03:46:06 +0900 Subject: define ZEND_MM_ERROR=0 to suppress munmap() errors --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 8fa1318..d72b0ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ RUN apt-get update && \ && \ : +# Define ZEND_MM_ERROR=0 to suppress munmap() errors. RUN cd php-src && \ ./buildconf --force && \ emconfigure ./configure \ @@ -28,7 +29,7 @@ RUN cd php-src && \ --without-pdo-sqlite \ --without-sqlite3 \ && \ - EMCC_CFLAGS='-s ERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j$(nproc) && \ + EMCC_CFLAGS='-s ERROR_ON_UNDEFINED_SYMBOLS=0 -D ZEND_MM_ERROR=0' emmake make -j$(nproc) && \ mv libs/libphp.a .. && \ make clean && \ git clean -fd && \ -- cgit v1.2.3-70-g09d2