Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91710 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34722 invoked from network); 16 Mar 2016 19:30:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2016 19:30:00 -0000 Authentication-Results: pb1.pair.com header.from=pjsturgeon@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pjsturgeon@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.175 as permitted sender) X-PHP-List-Original-Sender: pjsturgeon@gmail.com X-Host-Fingerprint: 209.85.217.175 mail-lb0-f175.google.com Received: from [209.85.217.175] ([209.85.217.175:34436] helo=mail-lb0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/3D-48430-634B9E65 for ; Wed, 16 Mar 2016 14:30:00 -0500 Received: by mail-lb0-f175.google.com with SMTP id k12so54567387lbb.1 for ; Wed, 16 Mar 2016 12:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=Vb4Ru603ONJHVloCj0RDvik+AzdPckV8manysC29LDE=; b=ejnco5wC1WNHYadkhYSGr/l7FyWkgfenBs5/PH06TrKTtEDBa/GJW4gzhRSvDT0c7D a6UMJJvzjKcKL6YHqpDUMm1rikHPSyiaC2VUJhrPAlb1kFn5f9qFo+yTdF+Z77kYyB3q zVYC2pgqa3uDrcU1ZGNXQis3GPp7E/j0/t1GM2wwUEXsln2Vxyk0WmsaIP9H7CYYNs+P pExgay3o9NZ53WHCq8BUw0wTd6ZQBZjgEwCJPzzy5zjT2pXn1hRVwDFlAS1xd/qupmZC +6RnO/fNTQtAddPvWLFD8EWpjTbPt6JJbmwZH1k7Yj5pcc+4m/v2dTdV2hB5cBHtt9zO c+7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=Vb4Ru603ONJHVloCj0RDvik+AzdPckV8manysC29LDE=; b=bMaHNDxy8jNYV4ldb2qO2rC80EBOtqmNvrX8fUOoLwuRduOJTB5XWB4UghUYxSZZ4l uxT2qbqpp7uT1X2jor192UlMh3I6PQzr6DOt2k3vZf5UPLl9gAspA8Ks6TZHZEoxeE14 pVq11aSq/sib5Gxmc6Hcu/gozFSzXM4IHBpmmlLrF6fDwp3/yUFFAjYPaEvouEUjRy6u 7VW1PToPQ08rzWKCHXMduSzoraYjAzE7S6K5fZ/EManvBQQmCj1jXzElY4aNUIDmSf5q tH09Td6wizvghxbN3DvI3s+AOS6x0yn+ZLAjYjWqGrYxYzjy/A8hAdeK/6JRqxctNClG Fotw== X-Gm-Message-State: AD7BkJJQzjHaGkiHl7Ihm6Eybrng4ZuyR00LYippjktSc8Y1sqtYJhaxOrkUejz+kSieRm4NLrAsy21pbqGJyQ== MIME-Version: 1.0 X-Received: by 10.112.13.8 with SMTP id d8mr2141695lbc.110.1458156595129; Wed, 16 Mar 2016 12:29:55 -0700 (PDT) Received: by 10.114.78.71 with HTTP; Wed, 16 Mar 2016 12:29:55 -0700 (PDT) In-Reply-To: <1458149992.3969.2.camel@kuechenschabe> References: <1458149992.3969.2.camel@kuechenschabe> Date: Wed, 16 Mar 2016 15:29:55 -0400 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: pjsturgeon@gmail.com (Phil Sturgeon) On Wed, Mar 16, 2016 at 1:39 PM, Johannes Schl=C3=BCter wrote: > On Wed, 2016-03-16 at 12:36 -0400, Phil Sturgeon wrote: >> Hello everyone, >> >> I have completed the draft for an RFC, to add Typed Properties. The >> patch has been written by the one and only Joe Watkins. >> >> https://wiki.php.net/rfc/typed-properties > > I'm no fan of all this typing business, but that's a lost case. Anyways: > What about references? (yeah, references should die, but currently they > still exist) > > What's expected here: > > class A { > public int $i; > } > > $a =3D new A(); > $r =3D &$a->i; > $r =3D "foobar"; > > johannes > > Hey there! I put your code into 3v4l so you could see what would happen: https://3v4l.org/taC8D Fatal error: Uncaught TypeError: Typed property A::$i must not be reference= d Is that what you expect? If not, what would you expect?