Re: Protected inheritance hierarchies
| From: | Rowan Tommins [IMSoP] | Date: | Sat, 02 Aug 2025 20:33:19 +0000 |
| Subject: | Re: Protected inheritance hierarchies | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128376@lists.php.net to get a copy of this message | ||
On 2 August 2025 20:12:59 BST, Rob Landers <rob@bottled.codes> wrote:
>I mentioned in my first reply, there is no way to get an instance-level property unshadowed. It
>is there though (according to inheritance.c, if I’m reading it right, it is still accessible, just
>not from user-land).
I'd be interested to see what code you're looking at. As I showed in my last email,
there's an explicit difference in how private and protected property names are mangled, and
it's consistent with how reflection, serialisation, and debug functions output them - which is
that there is only one property, no matter how many times in the inheritance chain it is redefined.
Rowan Tommins
[IMSoP]