Re: Possible Bug with Interface, Constants and Inheritance
| From: | Karl Pflästerer | Date: | Mon, 27 Jun 2016 15:19:13 +0000 |
| Subject: | Re: Possible Bug with Interface, Constants and Inheritance | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94280@lists.php.net to get a copy of this message | ||
Am 27.06.16 um 17:04 schrieb Christoph Becker:
On 27.06.2016 at 15:28, (Karl Pflästerer ) wrote:There is no opcache in use. (Don't know if the message can be seen on the list; I only could read it in my mailbox; I could'nt see it in Gmane). KPAndreas Heigl <andreas@heigl.org> writes:Have you tried with and without OPcache?Am 27.06.16 um 15:01 schrieb Karl Pflästerer:But why does it work in the CLI if I write the code (instead of using a script)? That's my question.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 ;)