Skip to content

Statements generate invalid json response #9

@sk-

Description

@sk-

Running the command:
$a = eval('return function foo(){};');

gives the response:
{"r":""}
{"r":"syntax error, unexpected 'foo' (T_STRING), expecting '('"}

which of course is not valid JSON.

This is probably because the syntax error in this eval is ignoredm and the outer eval still returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions