aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-04-23 03:46:06 +0900
committernsfisis <nsfisis@gmail.com>2025-04-23 03:46:21 +0900
commit9d11dba9813a05bd7c4b15cac4163c0160a9d08f (patch)
treee5e389781fa05f1c9d6170b60722c598970e5e25 /Dockerfile
parentc6251605c0dfab5709109971935a71a04527b7fb (diff)
downloadtiny-php.wasm-9d11dba9813a05bd7c4b15cac4163c0160a9d08f.tar.gz
tiny-php.wasm-9d11dba9813a05bd7c4b15cac4163c0160a9d08f.tar.zst
tiny-php.wasm-9d11dba9813a05bd7c4b15cac4163c0160a9d08f.zip
define ZEND_MM_ERROR=0 to suppress munmap() errors
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
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 && \