How to escape command arguments in phpdbg console?

98 Views Asked by At

I try to call command in phpdbg console:

argv --m=find --filters={"id":4}

The result is:

[Parse Error: syntax error, unexpected identifier (command or function name), expecting # (pound sign) or digits (numbers)]
-->  STR_PARAM(argv=4)
-->  STR_PARAM(--m=find=8)

The problem is in colon character ":". When i remove it from argument, all goes fine. But i need it, to pass json data in arguments without translation.

argv --m=find --filters={"id"\:4} OR

argv --m=find '--filters={"id":4}' OR EVEN

argv '--m=find --filters={"id":4}'

PS. argv is user registered command in .phpdbginit of Krakjoe.

0

There are 0 best solutions below