-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit dcf8a63
committed
GH-15723: add
Allow determining the name of the file that defined a constant, when the
constant was defined in userland code via `define()`. For constants defined by
PHP core or extensions, `false` is returned, matching the existing
`getFileName()` methods on other reflection classes.ReflectionConstant::getFileName()
1 parent 306a519 commit dcf8a63
File tree
9 files changed
+76
-1
lines changed- Zend
- ext/reflection
- tests
9 files changed
+76
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
549 | 549 |
| |
550 | 550 |
| |
551 | 551 |
| |
552 | + | ||
553 | + | ||
554 | + | ||
555 | + | ||
556 | + | ||
557 | + | ||
558 | + | ||
552 | 559 |
| |
553 | 560 |
| |
554 | 561 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 | + | ||
50 | + | ||
51 | + | ||
49 | 52 |
| |
50 | 53 |
| |
51 | 54 |
| |
52 | 55 |
| |
53 | 56 |
| |
54 | 57 |
| |
58 | + | ||
59 | + | ||
60 | + | ||
55 | 61 |
| |
56 | 62 |
| |
57 | 63 |
| |
| |||
68 | 74 |
| |
69 | 75 |
| |
70 | 76 |
| |
77 | + | ||
78 | + | ||
79 | + | ||
71 | 80 |
| |
72 | 81 |
| |
73 | 82 |
| |
| |||
123 | 132 |
| |
124 | 133 |
| |
125 | 134 |
| |
135 | + | ||
126 | 136 |
| |
127 | 137 |
| |
128 | 138 |
| |
| |||
133 | 143 |
| |
134 | 144 |
| |
135 | 145 |
| |
146 | + | ||
136 | 147 |
| |
137 | 148 |
| |
138 | 149 |
| |
| |||
143 | 154 |
| |
144 | 155 |
| |
145 | 156 |
| |
157 | + | ||
146 | 158 |
| |
147 | 159 |
| |
148 | 160 |
| |
| |||
154 | 166 |
| |
155 | 167 |
| |
156 | 168 |
| |
169 | + | ||
157 | 170 |
| |
158 | 171 |
| |
159 | 172 |
| |
| |||
165 | 178 |
| |
166 | 179 |
| |
167 | 180 |
| |
181 | + | ||
168 | 182 |
| |
169 | 183 |
| |
170 | 184 |
| |
| |||
502 | 516 |
| |
503 | 517 |
| |
504 | 518 |
| |
519 | + | ||
520 | + | ||
521 | + | ||
522 | + | ||
505 | 523 |
| |
506 | 524 |
| |
507 | 525 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | + | ||
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
302 | + | ||
303 | + | ||
304 | + | ||
302 | 305 |
| |
303 | 306 |
| |
304 | 307 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7784 | 7784 |
| |
7785 | 7785 |
| |
7786 | 7786 |
| |
7787 | + | ||
7788 | + | ||
7789 | + | ||
7790 | + | ||
7791 | + | ||
7792 | + | ||
7793 | + | ||
7794 | + | ||
7795 | + | ||
7796 | + | ||
7797 | + | ||
7798 | + | ||
7799 | + | ||
7800 | + | ||
7787 | 7801 |
| |
7788 | 7802 |
| |
7789 | 7803 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
910 | 910 |
| |
911 | 911 |
| |
912 | 912 |
| |
913 | + | ||
914 | + | ||
913 | 915 |
| |
914 | 916 |
|
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 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 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + |
0 commit comments