Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statements generate invalid json response #9

Open
sk- opened this issue Mar 15, 2014 · 0 comments
Open

Statements generate invalid json response #9

sk- opened this issue Mar 15, 2014 · 0 comments
Labels

Comments

@sk-
Copy link
Owner

sk- commented Mar 15, 2014

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.

@sk- sk- added the bug label Mar 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant