vmware-labs / webassembly-language-runtimes

Wasm Language Runtimes provides popular language runtimes (Ruby, Python, …) precompiled to WebAssembly that are tested for compatibility and kept up to date when new versions of upstream languages are released
Apache License 2.0
335 stars 28 forks source link

Drupal's PHP demo not working without preopen root directory #118

Open gzurl opened 1 year ago

gzurl commented 1 year ago

Describe the bug

A WasmMapDir / / directive seems needed in mod_wasm Drupal's demo and other PHP demos.

Apparently, the PHP runtime performs some checks during the bootup that require access to the root directory. When removing this permission, PHP doesn't boot up as expected.

Reproduction steps

Run mod_wasm's Drupal demo, and remove the line WasmMapDir / /, restart Apache and try again.

Expected behavior

PHP should be able to boot up even if the root directory is not pre-open.

Additional context

No response