wasmerio/wasmer

PHP execution breaks after consecutive requests

Closed this issue · 2 comments

Steps:

  1. Clone: https://github.com/wasmer-examples/wordpress-wasmer-starter
  2. Run wasmer run . --net
  3. Access http://localhost:8080/ in your browser and refresh multiple times.
  4. The server silently crashes (without saying anything to the user)
➜ wordpress-wasmer-starter $ wasmer run . --net
[Fri Feb 9 17:04:58 2024] PHP 7.4.31-dev Development Server (http://localhost:8080) started
[Fri Feb 9 17:04:59 2024] 127.0.0.1:63523 Accepted
[Fri Feb 9 17:04:59 2024] 127.0.0.1:63523 [200]: GET /
[Fri Feb 9 17:04:59 2024] 127.0.0.1:63523 Closing
[Fri Feb 9 17:05:00 2024] 127.0.0.1:63529 Accepted
[Fri Feb 9 17:05:00 2024] 127.0.0.1:63529 [200]: GET /
[Fri Feb 9 17:05:00 2024] 127.0.0.1:63529 Closing
[Fri Feb 9 17:05:00 2024] 127.0.0.1:63531 Accepted
➜ wordpress-wasmer-starter $

Normal Native PHP server:

php -t app -S localhost:8080

\\

This probably is an issue in the compiled PHP, not in the runtime.