Git Product home page Git Product logo

phish-shell's People

Contributors

sk- avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

phish-shell's Issues

Ajax call does not handle errors

Sometimes the service is unavailable or the backend returns a non 200 response, in which case the shell does not do or report anything to the user.

Do not save the statement in case of errors

Executing an invalid statements that may require saving, like for example:

$a = function foo() {};

will generate subsequent errors, as the statement is saved and will be executed every time before a statement.

The solution is to save the statement only if the previous statement was executed successfully.

Automatic echo of output

It is annoying to have to type print_r or echo for simple statements. For example:

1 + 2
0
$a

Statements generate invalid json response

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.