com php-src: Fixed potential bug in run command: phpdbg_parse r.y
| From: | Bob Weinand | Date: | Sun, 20 Apr 2014 11:28:11 +0000 |
| Subject: | com php-src: Fixed potential bug in run command: phpdbg_parse r.y | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-76978@lists.php.net to get a copy of this message | ||
Commit: d21d5c98a53ddedc3e15d53f8dbe5d71eb06417e
Author: Bob Weinand <bobwei9@hotmail.com> Sun, 20 Apr 2014 13:28:11 +0200
Parents: 5a7497904e4f0f3bd300e1353a26fab80c178321
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d21d5c98a53ddedc3e15d53f8dbe5d71eb06417e
Log:
Fixed potential bug in run command
Changed paths:
M phpdbg_parser.y
Diff:
diff --git a/phpdbg_parser.y b/phpdbg_parser.y
index be37781..4a84504 100644
--- a/phpdbg_parser.y
+++ b/phpdbg_parser.y
@@ -147,15 +147,15 @@ parameter
$$.str = $2.str;
$$.len = $2.len;
}
+ | T_RUN {
+ $$.type = RUN_PARAM;
+ $$.len = 0;
+ }
| T_RUN T_INPUT {
$$.type = RUN_PARAM;
$$.str = $2.str;
$$.len = $2.len;
}
- | T_RUN {
- $$.type = RUN_PARAM;
- $$.len = 0;
- }
| T_OPCODE { $$ = $1; }
| T_ADDR { $$ = $1; }
| T_LITERAL { $$ = $1; }