Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94281 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78473 invoked from network); 27 Jun 2016 15:28:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2016 15:28:24 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.20 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.20 mout.gmx.net Received: from [212.227.17.20] ([212.227.17.20:58304] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/15-40393-B5041775 for ; Mon, 27 Jun 2016 11:03:55 -0400 Received: from [192.168.2.103] ([217.82.227.154]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M8mCe-1bC62M2tgq-00C84H; Mon, 27 Jun 2016 17:03:50 +0200 To: =?UTF-8?Q?=28Karl_Pfl=c3=a4sterer_=29?= , internals@lists.php.net References: <5d2a68ac-ccd8-59a9-31a8-91e40ecae12f@heigl.org> Message-ID: Date: Mon, 27 Jun 2016 17:04:01 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:n5d05K4TLlSiJWPDz3do3VoD946gPo6LgJFP77no+91ImNbdSrz MTE3qWLRCbs+IqfdBoKd/SRNDOIhzeYCN+MqdT2Wg/vbYy7DHKu/h7KEj9mcFLC38JCoAF0 tgvljuKUibc2zeUC/vUUF+tgyOd37D+rzbVOfpCW3hK+9BKS3b4YtV1a9Y7PRO53RVVx+5v tCISpx1TTGtoU/SfEiZ1Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:upRQWu/HHW4=:GiV4hHBfkbihy3+3YBeMES LRLJKk7hnL9WA2TF36IR51cqzPvwYibQdDlu/HRrhuJIlT1DBn9K2lv8xjBBsz5dtD7wN4fgS yoFNxav+MBdRrGezM4TbYGWUM/mrRLW2P0snVyFtUhpE5SaBIscUca+xKUBG7PrzVf4sr9nzx YIJMgy4/xwbSwDINqP6rsZogCwyQpUAQSPZzSsSJG4n6JZ86XW6n6z0nhAdulXlmLzUSAdVco W/BVNsZGk+ewrzA7WP/ebWyWgVlzIUvGphzZfzomrezT9tP85WDyJa+dYHLOXZGZDnqJnEQCz TS6NWDxqWVLO2/9AMpVT+L6QyssTdbcMZ2sFvQ9xcri/Zba4P8yBRR0/iBOqdnAWtwXSfMUib yEVoOlCCfsIAMk9gPeZ5/LdRR+2s1VTI4c/FOD25Vuq0I0cTf/1AeMbbY5nH4v9hEPup6Tvba +XxylXT+qjuGxVaIRQwxfe8pI6eUdoQE2rp7jeq6lXaVYOZ7EbavE5V9+SvWsNqcl/ZuhzEii ISsgPdnTP+35w9X/2EPG6KArZyhdDIFhJteywk7tBiNfXutLFUPJEr+KQYF+kgpmlUqu3dvfU UUW+ZlgcqLD0n89oouCC9Dinc/9ODmDBr1+gB14Ar/LWwyAmntRQFyxC/96vfKuvGmf7wMYjx Tkn7GqJMeYzxdo80Kfi2piJXTO7Fqw5vHFAhOlsRnqBrLDeLbmmY2XESuvrcVaZDE28tdhHRl HJMnxSpIgdl8xJtdRi7K2ChzIEfViVSDXQLId4/lsgY8ZXEDS72DqMF6UQE6toCtf29T4y0FN /0OGJ06 Subject: Re: [PHP-DEV] Possible Bug with Interface, Constants and Inheritance From: cmbecker69@gmx.de (Christoph Becker) On 27.06.2016 at 15:28, (Karl Pflästerer ) wrote: > 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. Have you tried with and without OPcache? -- Christoph M. Becker