Commit a8bbc84
committed
Disallow asymmetric visibility on static properties
This check was forgotten in the original implementation. Relaxing this
restriction shouldn't be hard, but needs some work. We either need to prevent
merging of cache slots for R/RW/W, or we need to introduce an additional check
when writing to the property indirectly. This check is currently present only
for direct writes.
Closes phpGH-164621 parent d70f3ba commit a8bbc84
File tree
3 files changed
+18
-0
lines changed- Zend
- tests/asymmetric_visibility
3 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8598 | 8598 | | |
8599 | 8599 | | |
8600 | 8600 | | |
| 8601 | + | |
| 8602 | + | |
| 8603 | + | |
| 8604 | + | |
8601 | 8605 | | |
8602 | 8606 | | |
8603 | 8607 | | |
| |||
0 commit comments