peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.31k stars 201 forks source link

Eval() syntax errors can not be handled (will crash the app) #1079

Open kripper opened 1 year ago

kripper commented 1 year ago

In this test case, both eval()'s should be ignored / catched.

    @eval("<");

    try {
        eval("<");
    } catch(Exception $e) {
        die("Cached");
    }

See also: https://github.com/peachpiecompiler/peachpie/issues/502