glassmonkey / php-playground

PHP Playground by WebAssembly
https://php-play.dev/
Apache License 2.0
80 stars 10 forks source link

infinite loading and stuck while writing while loop #218

Open AMEER-HAMZA-RANA opened 1 month ago

AMEER-HAMZA-RANA commented 1 month ago

While writing while loop, editor gets stuck on infinite loading, it should have some predefined limitation to stop.

glassmonkey commented 2 weeks ago

I apologize for the delayed response.

Yes, this is a known bug reported in the issue below. It causes the CPU to stack during an infinite loop.

https://github.com/glassmonkey/php-playground/issues/6

I believe we can improve this by using a service worker to separate the PHP process, but I haven't had the time to work on it yet.

If you're interested, contributions are welcome!