summaryrefslogtreecommitdiff
path: root/phpdbg_parser.y
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-06-29 11:40:48 +0200
committerBob Weinand <bobwei9@hotmail.com>2014-06-29 11:42:40 +0200
commit16ae792988c577299ea9a34e11ad798739c2d888 (patch)
tree416e5d22e31379fc84c2eeb87ff15b18ce8f4240 /phpdbg_parser.y
parentef77d84061b0de674bdad80fa55f220a6b2f9e7d (diff)
downloadphp-git-16ae792988c577299ea9a34e11ad798739c2d888.tar.gz
Fix issue krakjoe/phpdbg#98
break if does not seem to work
Diffstat (limited to 'phpdbg_parser.y')
-rw-r--r--phpdbg_parser.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpdbg_parser.y b/phpdbg_parser.y
index fd81edfc29..702bf78455 100644
--- a/phpdbg_parser.y
+++ b/phpdbg_parser.y
@@ -121,6 +121,11 @@ parameter
$$.len = $1.len;
$$.num = $3.num;
}
+ | T_IF T_INPUT {
+ $$.type = COND_PARAM;
+ $$.str = $2.str;
+ $$.len = $2.len;
+ }
| T_OPCODE { $$ = $1; }
| T_ADDR { $$ = $1; }
| T_LITERAL { $$ = $1; }
@@ -131,12 +136,7 @@ parameter
;
full_expression
- : T_IF T_INPUT {
- $$.type = COND_PARAM;
- $$.str = $2.str;
- $$.len = $2.len;
- }
- | T_EVAL T_INPUT {
+ : T_EVAL T_INPUT {
$$.type = EVAL_PARAM;
$$.str = $2.str;
$$.len = $2.len;