Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93491 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15339 invoked from network); 24 May 2016 19:04:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2016 19:04:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 65.55.169.133 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 65.55.169.133 mail-bl2on0133.outbound.protection.outlook.com Received: from [65.55.169.133] ([65.55.169.133:58080] helo=na01-bl2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/45-10476-6C5A4475 for ; Tue, 24 May 2016 15:04:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qDGW3SNidLcErASx2dNMSM+wsDHgf1mqE0R2onI7zx4=; b=GNfFo/DJWto+rOsX/CJmd6Er/ykOgAD3FGVtKEcRi/1AFutP7pd0yXWT+3rIQewo4L8lxjJojF4/44AZAmMyj1VpX4qC5KdD+Ip6GsileekJlCpCiPdiD17ZZMi1Ouy/j80Mw4JH9ytjJDLXkhcU54lXWUCW+F9+WaC3LlEsDJw= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1783.namprd02.prod.outlook.com (10.163.72.25) with Microsoft SMTP Server (TLS) id 15.1.501.7; Tue, 24 May 2016 19:04:34 +0000 Received: from BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) by BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) with mapi id 15.01.0501.013; Tue, 24 May 2016 19:04:34 +0000 To: Joe Watkins , PHP internals , Phil Sturgeon , Bob Weinand Thread-Topic: [PHP-DEV] [RFC][Vote] Typed Properties Thread-Index: AQHRsl29xlQFrvOFJkSnB4pG0wOhsp/Icluf Date: Tue, 24 May 2016 19:04:34 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: pthreads.org; dkim=none (message not signed) header.d=none;pthreads.org; dmarc=none action=none header.from=zend.com; x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: df766881-0c98-4fa8-5c50-08d384063edd x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1783;5:cX2WLbgFz4yiD2zAejbzWsKy+LJ3nc8s1Rstrh6ENXsCnGV4RfhDwN9+p+QkwQYQZeDzQYhaflh1WlOQ4e6tuTDo6Jm8+HFfgcNsIazouK0HwIbQd7MfbGgshYxFQMcg2EF2ICfuYDSLshevrixYMA==;24:EHO4CiH8xOFVP2DJ1oJkdapr4iXhsR4GVr2oNB8gf/gFtob9M6WlcsgYLPkvGGK0dujwmoIqQksWayKwtFDUhZt2YfcB/46U1STSH/Byqo0=;7:B9uTTdyRwegVC/kfpYfjgFPJKsAIqwoZU1z4OuDjBGkTP1MM4sBsB8QPy1xz+GjbF4H2ZkM/zNgqtFynY2+dY3Fzub6xUZS+56bXo+xae5MgMj044UGYTzvptQ3bhsHR9DPCWrOk/pfqxqR14rEwQ7BJIhL6GVldmCYZYVonfTPClUPVbTik7g2HSRHgNcUP x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1783; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:BY2PR0201MB1783;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1783; x-forefront-prvs: 09525C61DB x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(1220700001)(8936002)(6116002)(102836003)(586003)(86362001)(50986999)(2906002)(54356999)(8676002)(76176999)(81166006)(107886002)(76576001)(3846002)(106116001)(5008740100001)(189998001)(66066001)(122556002)(5004730100002)(11100500001)(74316001)(2950100001)(9686002)(2900100001)(3280700002)(19580395003)(19580405001)(87936001)(5003600100002)(15975445007)(10400500002)(3660700001)(77096005)(99286002)(5002640100001)(5001770100001)(33656002)(92566002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1783;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2016 19:04:34.6244 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1783 Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: dmitry@zend.com (Dmitry Stogov) Hi Joe, I've add implementation for nullable typed properties (as they fit into the= patch design), but RFC missed any description of nullable properties. See tests Zend/tests/type_declarations/typed_properties_047.phpt, Zend/te= sts/type_declarations/typed_properties_048.phpt, Zend/tests/type_declarati= ons/typed_properties_049.phpt I'm not sure, if this is what the voters expect. At least I don't like the = facts that "?int $foo;" declares uninitialized property; "?int $foo =3D NUL= L" may be unset() and became uninitialized; and it's an open question if "i= nt $foo =3D NULL;" should be supported as nullable. Inheritance rules for t= yped nullable properties are also missed. Personally, I think the RFC was moved into voting state too early (without = good enough implementation, and with missing topics). The current implementation is better (performance penalty reduced to ~2%), = but still have unsolved problems. May be it's better to cancel voting, solve problems, finish the implementat= ion and add missing questions into RFC... I'm going to help with implementation in any case, but we should agree on w= hat we are doing. Thanks. Dmitry. ________________________________________ From: Joe Watkins Sent: Friday, May 20, 2016 9:05:34 AM To: PHP internals; Phil Sturgeon Subject: [PHP-DEV] [RFC][Vote] Typed Properties Morning internals, Since we have our answer on nullable types, typed properties can now go to vote. https://wiki.php.net/rfc/typed-properties#vote Note that, support for nullability as RFC'd will be merged when the implementation for nullable_types is merged into master. Please participate. Cheers Joe