1

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.

Mikl
  • 673
  • 9
  • 19
  • Thanks for that… we totally didn't think about that, I need to fix that bug... – bwoebi Sep 05 '15 at 13:39
  • @bwoebi, what is the right way for now to pass arguments with colon char? Do i need to use some escaping? – Mikl Sep 18 '15 at 17:14
  • 1
    Yes, you'll need to pass `'--filters={"id":4}'` (in PHP 7.0; if you want to test right now, you'll need to compile it yourself.) – bwoebi Sep 18 '15 at 20:02

0 Answers0