-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit 8f3cdf6
authored
gen_stub: Add support for attributes on constants in stubs (#18735)
Update to PHP-Parser 5.5.0 and add support for attributes on constants in
stubs. For now, I have only migrated over E_STRICT, once the support is in
place I'll do a larger migration of the existing deprecated constants.
In the process, fix the logic in `copy_zend_constant()` for copying attributes
when a constant is copied; just increase the reference count for the attributes
table rather than trying to duplicate the contents.1 parent 99d5624 commit 8f3cdf6
File tree
11 files changed
+143
-16
lines changed- Zend
- tests
- build
- ext
- reflection/tests
- zend_test
- tests
11 files changed
+143
-16
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | - | ||
13 | + | ||
14 | 14 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | + | ||
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
| |||
126 | 127 |
| |
127 | 128 |
| |
128 | 129 |
| |
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | ||
129 | 136 |
| |
130 | 137 |
| |
131 | 138 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 | - | ||
88 | + | ||
89 | + | ||
89 | 90 |
| |
90 | 91 |
| |
91 | 92 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | - | ||
75 | 74 |
| |
76 | 75 |
| |
76 | + | ||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
|
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2622 | 2622 |
| |
2623 | 2623 |
| |
2624 | 2624 |
| |
2625 | + | ||
2626 | + | ||
2627 | + | ||
2628 | + | ||
2629 | + | ||
2630 | + | ||
2631 | + | ||
2625 | 2632 |
| |
2626 | 2633 |
| |
2627 | 2634 |
| |
| |||
2915 | 2922 |
| |
2916 | 2923 |
| |
2917 | 2924 |
| |
2925 | + | ||
2918 | 2926 |
| |
2919 | 2927 |
| |
2920 | 2928 |
| |
2921 | 2929 |
| |
2922 | - | ||
2923 | - | ||
2924 | - | ||
2925 | - | ||
2926 | - | ||
2927 | - | ||
2928 | - | ||
2929 | 2930 |
| |
2930 | 2931 |
| |
2931 | 2932 |
| |
| |||
4340 | 4341 |
| |
4341 | 4342 |
| |
4342 | 4343 |
| |
4343 | - | ||
4344 | + | ||
4344 | 4345 |
| |
4345 | 4346 |
| |
4346 | 4347 |
| |
| |||
5177 | 5178 |
| |
5178 | 5179 |
| |
5179 | 5180 |
| |
5180 | - | ||
5181 | + | ||
5182 | + | ||
5183 | + | ||
5181 | 5184 |
| |
5182 | 5185 |
| |
5183 | 5186 |
| |
| |||
5289 | 5292 |
| |
5290 | 5293 |
| |
5291 | 5294 |
| |
5295 | + | ||
5296 | + | ||
5297 | + | ||
5298 | + | ||
5299 | + | ||
5300 | + | ||
5301 | + | ||
5302 | + | ||
5303 | + | ||
5304 | + | ||
5305 | + | ||
5306 | + | ||
5307 | + | ||
5308 | + | ||
5309 | + | ||
5310 | + | ||
5311 | + | ||
5312 | + | ||
5313 | + | ||
5314 | + | ||
5315 | + | ||
5316 | + | ||
5317 | + | ||
5318 | + | ||
5319 | + | ||
5320 | + | ||
5321 | + | ||
5322 | + | ||
5323 | + | ||
5324 | + | ||
5325 | + | ||
5326 | + | ||
5327 | + | ||
5328 | + | ||
5329 | + | ||
5330 | + | ||
5331 | + | ||
5332 | + | ||
5333 | + | ||
5334 | + | ||
5335 | + | ||
5336 | + | ||
5337 | + | ||
5338 | + | ||
5339 | + | ||
5292 | 5340 |
| |
5293 | 5341 |
| |
5294 | 5342 |
| |
| |||
6030 | 6078 |
| |
6031 | 6079 |
| |
6032 | 6080 |
| |
6033 | - | ||
6081 | + | ||
6034 | 6082 |
| |
6035 | 6083 |
| |
6036 | 6084 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
20 | 26 |
| |
21 | 27 |
| |
22 | 28 |
| |
|
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
20 | 26 |
| |
21 | 27 |
| |
22 | 28 |
| |
| |||
38 | 44 |
| |
39 | 45 |
| |
40 | 46 |
| |
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + |
0 commit comments