php-playground icon indicating copy to clipboard operation
php-playground copied to clipboard

Infinite loop countermeasures

Open glassmonkey opened this issue 1 year ago • 2 comments

It hangs in an infinite loop code as follows.

<?php
while(true) {
    echo(1);
}

glassmonkey avatar Mar 13 '23 04:03 glassmonkey

#17

c895ddfaa2f92a6f0f62da1b86f953d8

As a provisional response, add a wait animation.

As an essential response, have Wasm run in a Web Worker and run in a separate thread.

glassmonkey avatar Mar 18 '23 15:03 glassmonkey

It would be nice to be able to change max-execution-time and apply it on the fly.

sk33wiff avatar Aug 05 '24 02:08 sk33wiff

@glassmonkey Sorry just curious but how will Web workers solve the infinite loop problem

Nelwhix avatar Dec 08 '24 23:12 Nelwhix