File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ DIGITS [-]?[0-9\.]+
81
81
ID [^ \r\n\t:#\000]+
82
82
GENERIC_ID ([^ \r\n\t:#\000"']|":\\")+|["]([^\n\000"\\]|"\\\\"|"\\"["])+["]|[']([^\n\000'\\]|"\\\\"|"\\"['])+[']
83
83
ADDR [0][x][a-fA-F0-9]+
84
- OPCODE (ZEND_|zend_)([A-Za -z])+
84
+ OPCODE (ZEND_|zend_)([A-Z_a -z])+
85
85
INPUT ("\\"[#"']|["]("\\\\"|"\\"["]|[^\n\000"])+["]|[']("\\"[']|"\\\\"|[^\n\000'])+[']|[^\n\000#"'])+
86
86
87
87
<!*> := yyleng = (size_t) YYCURSOR - (size_t) yytext;
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Test parsing longer opcode
3
+ --PHPDBG--
4
+ b ZEND_POST_INC
5
+ r
6
+ c
7
+
8
+
9
+
10
+ q
11
+ --EXPECTF--
12
+ [Successful compilation of %s]
13
+ prompt> [Breakpoint #0 added at ZEND_POST_INC]
14
+ prompt> [Breakpoint #0 in ZEND_POST_INC at %s:3, hits: 1]
15
+ >00003: echo $i++;
16
+ 00004: echo $i++;
17
+ 00005: echo $i++;
18
+ prompt> 1
19
+ [Breakpoint #0 in ZEND_POST_INC at %s:4, hits: 2]
20
+ >00004: echo $i++;
21
+ 00005: echo $i++;
22
+ 00006: echo $i++;
23
+ prompt> 2
24
+ [Breakpoint #0 in ZEND_POST_INC at %s:5, hits: 3]
25
+ >00005: echo $i++;
26
+ 00006: echo $i++;
27
+ 00007:
28
+ prompt> 3
29
+ [Breakpoint #0 in ZEND_POST_INC at %s:6, hits: 4]
30
+ >00006: echo $i++;
31
+ 00007:
32
+ prompt> 4
33
+ [Script ended normally]
34
+ prompt>
35
+ --FILE--
36
+ <?php
37
+ $ i = 1 ;
38
+ echo $ i ++;
39
+ echo $ i ++;
40
+ echo $ i ++;
41
+ echo $ i ++;
You can’t perform that action at this time.
0 commit comments