Re: Possible Bug with Interface, Constants and Inheritance
| From: | (Karl Pflästerer) | Date: | Mon, 27 Jun 2016 13:28:30 +0000 |
| Subject: | Re: Possible Bug with Interface, Constants and Inheritance | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94278@lists.php.net to get a copy of this message | ||
Andreas Heigl <andreas@heigl.org> writes:
> Am 27.06.16 um 15:01 schrieb Karl Pflästerer:
>> interface I1 { const C1 = '';}
>> class C3 implements I1 { const C1 = 'c2';}
>> $c3 = new C3;
>> var_dump($c3::C1);
>
> According to https://3v4l.org/jIcs6 it looks like that's
> intended
> behaviour ;)
But why does it work in the CLI if I write the code (instead of using a
script)? That's my question.
KP