Re: Possible Bug with Interface, Constants and Inheritance
| From: | Andreas Heigl | Date: | Mon, 27 Jun 2016 13:14:20 +0000 |
| Subject: | Re: Possible Bug with Interface, Constants and Inheritance | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94277@lists.php.net to get a copy of this message | ||
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 ;)
Cheers
Andreas
--
,,,
(o o)
+---------------------------------------------------------ooO-(_)-Ooo-+
| Andreas Heigl |
| mailto:andreas@heigl.org N
50°22'59.5" E 08°23'58" |
| http://andreas.heigl.org http://hei.gl/wiFKy7 |
+---------------------------------------------------------------------+
| http://hei.gl/root-ca
|
+---------------------------------------------------------------------+
Attachment: [application/pkcs7-signature] S/MIME Cryptographic Signature smime.p7s
Attachment: [application/pkcs7-signature] S/MIME Cryptographic Signature smime.p7s