Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67510 invoked from network); 27 Jun 2016 13:28:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2016 13:28:51 -0000 Authentication-Results: pb1.pair.com header.from=k@rl.pflaesterer.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.3 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.3 plane.gmane.org Received: from [80.91.229.3] ([80.91.229.3:41367] helo=plane.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/44-40393-01A21775 for ; Mon, 27 Jun 2016 09:28:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bHWah-0004Zo-FH for internals@lists.php.net; Mon, 27 Jun 2016 15:28:43 +0200 Received: from 213.83.3.2 ([213.83.3.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2016 15:28:43 +0200 Received: from k by 213.83.3.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2016 15:28:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 27 Jun 2016 15:28:30 +0200 Lines: 15 Message-ID: References: <5d2a68ac-ccd8-59a9-31a8-91e40ecae12f@heigl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 213.83.3.2 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:JkZiekF6zy2P5vP3Stcz0dxHCx0= Subject: Re: [PHP-DEV] Possible Bug with Interface, Constants and Inheritance From: k@rl.pflaesterer.de ((Karl =?utf-8?Q?Pfl=C3=A4sterer?=)) Andreas Heigl 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