Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75133 invoked from network); 27 Jun 2016 15:19:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2016 15:19:23 -0000 Authentication-Results: pb1.pair.com header.from=k@rl.pflaesterer.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=k@rl.pflaesterer.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rl.pflaesterer.de from 81.169.146.178 cause and error) X-PHP-List-Original-Sender: k@rl.pflaesterer.de X-Host-Fingerprint: 81.169.146.178 mo4-p04-ob.smtp.rzone.de Received: from [81.169.146.178] ([81.169.146.178:61900] helo=mo4-p04-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/75-40393-8F341775 for ; Mon, 27 Jun 2016 11:19:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1467040757; l=751; s=domk; d=rl.pflaesterer.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:From:References:To:Subject; bh=MGoAmdDOcc3LyNpbdPNC1DOwU1j2BZQ7K9CJGHxQD+g=; b=BEMNeYNrco5HwaZDN8S4VY7cgTjrjNpppPWNH5nfwmlH0Xts0ZqwOrPx7tEm9B5J/cc MoTHqJwDUjnAdI8qva7D8NE8bSvvnyqulwegrHMyZpexlvcibNqat0vlQYWftCk6cWzrv nv2MjsuBjq90iXdrsZz71vU8Xat4N69OihE= X-RZG-CLASS-ID: mo04 X-RZG-AUTH: :J2QUVVCud/4uNQezhw1RrEwukEseODXFmgde7aJytWZ+88Fle645i2fAtuI= Received: from KHP-MBP.local (tmo-098-223.customers.d1-online.com [80.187.98.223]) by smtp.strato.com (RZmta 38.7 SBL|AUTH) with ESMTPSA id 002ff2s5RFJH2rt (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 27 Jun 2016 17:19:17 +0200 (CEST) To: Christoph Becker , internals@lists.php.net References: <5d2a68ac-ccd8-59a9-31a8-91e40ecae12f@heigl.org> Message-ID: <43e52a7c-1717-694d-a80f-b16b43e5667a@rl.pflaesterer.de> Date: Mon, 27 Jun 2016 17:19:13 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Possible Bug with Interface, Constants and Inheritance From: k@rl.pflaesterer.de (=?UTF-8?Q?Karl_Pfl=c3=a4sterer?=) Am 27.06.16 um 17:04 schrieb 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? > There is no opcache in use. (Don't know if the message can be seen on the list; I only could read it in my mailbox; I could'nt see it in Gmane). KP