Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94276 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63415 invoked from network); 27 Jun 2016 13:02:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2016 13:02:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=k@rl.pflaesterer.de; sender-id=unknown 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:39711] helo=plane.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/73-40393-EC321775 for ; Mon, 27 Jun 2016 09:02:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bHWAo-0008Lz-4y for internals@lists.php.net; Mon, 27 Jun 2016 15:01:58 +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:01:58 +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:01:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 27 Jun 2016 15:01:50 +0200 Lines: 38 Message-ID: Mime-Version: 1.0 Content-Type: text/plain X-Gmane-NNTP-Posting-Host: 213.83.3.2 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:x+uiw5nZhH74foo8eUqvw/kll7Q= Subject: Possible Bug with Interface, Constants and Inheritance From: k@rl.pflaesterer.de ((Karl =?utf-8?Q?Pfl=C3=A4sterer?=)) Hi, I'm not sure if it's a bug or not. Consider these simple script: php -v PHP 7.0.7 (cli) (built: May 27 2016 15:22:32) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies ~> php -a -ddispplay_errors=On Interactive shell php > interface I1 { const C1 = '';} php > class C3 implements I1 { const C1 = 'c2';} php > $c3 = new C3; php > var_dump($c3::C1); string(2) "c2" Is this always the correkt behaviour? KP