Commit 0190334
committed
ext/reflection: handle virtual+readonly in ReflectionProperty::isWritable().
Follow-up to review feedback from @iluuu1994 on GH-21769. Gate the
ZEND_ACC_VIRTUAL branch on prop->hooks being set, and short-circuit
virtual properties that also carry ZEND_ACC_READONLY to RETURN_FALSE
(no backing slot, treat as always initialized). Covers legitimate
virtual+readonly uses outside of DOM.1 parent e0efa2f commit 0190334
1 file changed
+22
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6762 | 6762 | | |
6763 | 6763 | | |
6764 | 6764 | | |
6765 | | - | |
6766 | | - | |
| 6765 | + | |
| 6766 | + | |
6767 | 6767 | | |
6768 | 6768 | | |
6769 | 6769 | | |
| |||
6853 | 6853 | | |
6854 | 6854 | | |
6855 | 6855 | | |
6856 | | - | |
6857 | | - | |
| 6856 | + | |
| 6857 | + | |
| 6858 | + | |
| 6859 | + | |
| 6860 | + | |
| 6861 | + | |
6858 | 6862 | | |
6859 | 6863 | | |
6860 | | - | |
| 6864 | + | |
| 6865 | + | |
6861 | 6866 | | |
6862 | | - | |
6863 | | - | |
6864 | | - | |
6865 | | - | |
6866 | | - | |
6867 | | - | |
6868 | | - | |
| 6867 | + | |
| 6868 | + | |
| 6869 | + | |
| 6870 | + | |
| 6871 | + | |
| 6872 | + | |
| 6873 | + | |
| 6874 | + | |
| 6875 | + | |
| 6876 | + | |
| 6877 | + | |
| 6878 | + | |
6869 | 6879 | | |
6870 | | - | |
6871 | | - | |
6872 | | - | |
6873 | | - | |
6874 | 6880 | | |
6875 | 6881 | | |
6876 | 6882 | | |
| |||
0 commit comments