Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93864 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53216 invoked from network); 10 Jun 2016 13:50:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2016 13:50:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.164 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.164 blu004-omc4s25.hotmail.com Received: from [65.55.111.164] ([65.55.111.164:57350] helo=BLU004-OMC4S25.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/70-50092-595CA575 for ; Fri, 10 Jun 2016 09:50:14 -0400 Received: from BLU437-SMTP74 ([65.55.111.137]) by BLU004-OMC4S25.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 10 Jun 2016 06:50:11 -0700 X-TMN: [4L6dgrfDLhvWL+P+lMCvetE15rvVoW+e] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_EB70F2A7-A1CD-4A30-A513-950178C407D1" MIME-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: Date: Fri, 10 Jun 2016 15:50:06 +0200 CC: Marco Pivetta , Joe Watkins , Philip Sturgeon , PHP internals References: To: Keller Niklas X-Mailer: Apple Mail (2.2070.6) X-OriginalArrivalTime: 10 Jun 2016 13:50:08.0640 (UTC) FILETIME=[00455000:01D1C31F] Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: bobwei9@hotmail.com (Bob Weinand) --Apple-Mail=_EB70F2A7-A1CD-4A30-A513-950178C407D1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" > Am 10.6.2016 um 15:34 schrieb Niklas Keller : >=20 >>=20 >> Top-posting, since I'm taking off now. >>=20 >> =46rom outside the class, properties are not visible at all, so their = types >> are un-important from outer scopes. >>=20 >> echo $foo->bar; is not the same in instance method body or outside of = the >> class. >>=20 > =46rom outside it works just fine and doesn't throw: > https://3v4l.org/L8CqF/rfc#rfc-typed_properties This is an intermittent bug in the implementation. the RFC is explicitly mentioning that it should throw and throwing also = is the correct behavior here. Bob --Apple-Mail=_EB70F2A7-A1CD-4A30-A513-950178C407D1--