Re: Possible Bug with Interface, Constants and Inheritance

From: Date: Mon, 27 Jun 2016 15:04:01 +0000
Subject: Re: Possible Bug with Interface, Constants and Inheritance
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-94281@lists.php.net to get a copy of this message
On 27.06.2016 at 15:28, (Karl Pflästerer ) wrote: > 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. Have you tried with and without OPcache? -- Christoph M. Becker

« previous php.internals (#94281) next »