phpdbg

Which delimiter can be used in phpdbg console or how to run multiple commands in one line?


I want to be able to run something like this:

clean; run; or shorter (X; r)

continue; ev $my_var; ev $other_var or shorter (c; ev $my_var)

Or it can be much more complicated one-liner ;)

How can i do this?


Solution

  • Use the # sign as delimiter. Introduced via http://git.php.net/?p=php-src.git;a=commit;h=adcabcc125094dae8fe1b62dca267e3fa302907d. (PHP 7 only)

    Example: ev get_defined_vars() # clean # run.