diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-17 22:45:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-17 22:57:23 +0900 |
| commit | 31ac8c7fd9f28e943ae9c899e304716e8c93bc28 (patch) | |
| tree | c2d3216fe275a1f8bc7130d5ded87b092833f5f3 /examples/compile-php-to-wasm/Dockerfile | |
| parent | 08ddaf4597ad3a9d22433625d11d14bde1dfeafe (diff) | |
| download | php-waddiwasi-31ac8c7fd9f28e943ae9c899e304716e8c93bc28.tar.gz php-waddiwasi-31ac8c7fd9f28e943ae9c899e304716e8c93bc28.tar.zst php-waddiwasi-31ac8c7fd9f28e943ae9c899e304716e8c93bc28.zip | |
feat: update PHP used for example to 8.5
Diffstat (limited to 'examples/compile-php-to-wasm/Dockerfile')
| -rw-r--r-- | examples/compile-php-to-wasm/Dockerfile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/compile-php-to-wasm/Dockerfile b/examples/compile-php-to-wasm/Dockerfile index 1e61133..31123ae 100644 --- a/examples/compile-php-to-wasm/Dockerfile +++ b/examples/compile-php-to-wasm/Dockerfile @@ -1,6 +1,6 @@ -FROM emscripten/emsdk:3.1.74 +FROM emscripten/emsdk:5.0.1 AS wasm-builder -RUN git clone --depth=1 --branch=php-8.4.5 https://github.com/php/php-src +RUN git clone --depth=1 --branch=php-8.5.3 https://github.com/php/php-src RUN apt-get update && \ apt-get install -y --no-install-recommends \ @@ -11,25 +11,24 @@ RUN apt-get update && \ && \ : -# Define ZEND_MM_ERROR=0 for suppressing munmap() errors. +# Define ZEND_MM_ERROR=0 to suppress munmap() errors. RUN cd php-src && \ ./buildconf --force && \ emconfigure ./configure \ --disable-all \ - --disable-mbregex \ - --disable-fiber-asm \ - --disable-cli \ --disable-cgi \ + --disable-cli \ + --disable-fiber-asm \ + --disable-opcache-jit \ --disable-phpdbg \ --enable-embed=static \ - --enable-mbstring \ --without-iconv \ --without-libxml \ --without-pcre-jit \ --without-pdo-sqlite \ --without-sqlite3 \ && \ - EMCC_CFLAGS='-s ERROR_ON_UNDEFINED_SYMBOLS=0 -D ZEND_MM_ERROR=0' emmake make -j$(nproc) && \ + EMCC_CFLAGS='-D ZEND_MM_ERROR=0' emmake make -j$(nproc) && \ mv libs/libphp.a .. && \ make clean && \ git clean -fd && \ |
