SjonHortensius / 3v4l_org

An online php shell
41 stars 6 forks source link

Option "+ include eol (slow)" does not work on first try, works on second try #11

Open boxcleverliam opened 1 month ago

boxcleverliam commented 1 month ago

What I expect:

  1. Write a script on 3v4l.org
  2. Select "+ include eol (slow)" from the drop-down list.
  3. Click the eval() button.
  4. Output is displayed for PHP versions 4, 5, 7, and 8.

What I see:

  1. Output is displayed for only the currently supported PHP versions.
  2. Select "+ include eol (slow)" a SECOND time.
  3. Output is displayed for PHP versions 4, 5, 7, and 8.

Submitting the same form gives different results the first time and the second time.

Is this intentional? Perhaps to reduce server load?

SjonHortensius commented 4 weeks ago

There's no need to submit twice, but the initial response should reload to retrieve all results which appears to be broken.

This is caused by the initial POST response missing #tabs having a class busy which would trigger https://github.com/SjonHortensius/3v4l_org/blob/41c9880473340a122b5feb1efa1475b907fe6187/htdocs/s/my.js#L288-L289

The class should have been added by https://github.com/SjonHortensius/3v4l_org/blob/master/tpl/script.html#L59