Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93865 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55646 invoked from network); 10 Jun 2016 14:00:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2016 14:00:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.219 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.219 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.219] ([81.169.146.219:44299] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/F0-50092-908CA575 for ; Fri, 10 Jun 2016 10:00:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1465567238; l=3094; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=bo4+UxBml1wOz1BoBjzR1hm9NtepF+7mZ8Xyny56yvs=; b=hPgc7PCrqqxpYJSKKhCbZpMyZxVbk0uBAEIZ26Hf12OZuWxA8MCMQl8+fYuw/C/td9i G8OPNW7m8ldd7+5I+yifYgXba+as0AX4YBseqpUbG+oMPH5zbTQMlXQ9BgjG9kYMwEP/y qEjtW+XVgbZ7HVEHsqFuqCJFWYfzbMisX6w= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtOnA6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f53.google.com ([74.125.82.53]) by smtp.strato.de (RZmta 38.3 AUTH) with ESMTPSA id t06a5bs5AE0c2I3 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Fri, 10 Jun 2016 16:00:38 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id m124so103396281wme.1 for ; Fri, 10 Jun 2016 07:00:38 -0700 (PDT) X-Gm-Message-State: ALyK8tLUYyR1I83rUPW8Iea17JiaR6ZkkeE2BDKb4/72vgPkFyxq4u4097bu4lQUC1m5Ehed0ZtV/j3V9cnnyg== X-Received: by 10.194.22.169 with SMTP id e9mr2420712wjf.128.1465567238640; Fri, 10 Jun 2016 07:00:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.199.67 with HTTP; Fri, 10 Jun 2016 07:00:37 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jun 2016 16:00:37 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Bob Weinand Cc: Marco Pivetta , Joe Watkins , Philip Sturgeon , PHP internals Content-Type: multipart/alternative; boundary=047d7b5d4fc2a76d5d0534ecf6d5 Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: me@kelunik.com (Niklas Keller) --047d7b5d4fc2a76d5d0534ecf6d5 Content-Type: text/plain; charset=UTF-8 2016-06-10 15:50 GMT+02:00 Bob Weinand : > > Am 10.6.2016 um 15:34 schrieb Niklas Keller : > > > Top-posting, since I'm taking off now. > > From outside the class, properties are not visible at all, so their types > are un-important from outer scopes. > > echo $foo->bar; is not the same in instance method body or outside of the > class. > > From 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. > I don't think this is and should be a bug. I think it is the right behavior if we choose to throw at all. --047d7b5d4fc2a76d5d0534ecf6d5--