\___PHPShell___
An instance of a phpsh interactive loop
- Author: ccheever
Synopsis
class ___PHPShell___
{
- // members
- public string $_cmd_line_ready_string = 'phpCommandLineReadyToGo';
- public $_handle = STDIN;
- public integer $_MAX_LINE_SIZE = 262144;
- // methods
- public void ___PHPShell___()
- public void __construct()
- public void __destruct()
- public escaped php_escape()
- public void __send_autocomplete_identifiers()
- public void _interactive_loop()
Members
public
- $_MAX_LINE_SIZE
- $_cmd_line_ready_string
- $_handle
Methods
public
- __construct()
- __destruct() — Destructor - just closes the handle to STDIN
- ___PHPShell___()
- __send_autocomplete_identifiers() — Sends the list of identifiers that phpsh should know to tab-complete to python
- _interactive_loop() — The main interactive loop
- php_escape() — A function that escapes the weird case where the user sends our long and arbitrary cmd_line_ready_string as output