Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110655 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29626 invoked from network); 18 Jun 2020 14:20:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jun 2020 14:20:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CC3151804F2 for ; Thu, 18 Jun 2020 06:06:06 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.80.0.0/12 X-Spam-Virus: No X-Envelope-From: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2030.outbound.protection.outlook.com [40.92.90.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 18 Jun 2020 06:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K7H0SSovtNQk7akwcsfmHVoVzORYTP2EvLOUYDkOzm5KNvFC6XDdB7ngkm9YCvUz9pNQIy0Prz3uCboA1vCDvkthc8VZfOGk/HXANb0HMnjSTL8W+0/8lvRp9UWj4DBzs+hWOB7gEt/UNkmJklxN7zTfKuNlFYiBbHgoNNh2p915DO54G05w7BibUgXAUx99HZussTEJGgrCq8TnrUJMPnsFMHVqthlKgFHQ7/LlnQ4eLcVT5WbjYbKEZyY+pq3/wMjD5ZbYImNlBYOBCOEmQ1joJbHtMRYQtLtcxABwZtNYVz+4BxYlKWB3kft9ABVJ9qT4dekZ+0SmHihGw2Rkzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z2oJMKUxhFWnGgTMMyIt2onYYNMk29bQma+DcdnGhJ8=; b=gnd7olzWsZ745brS2HghDPLCeeKyxIDLOEKTQqAqMD0fqZIjqX0UoJYxUIVOtvrboXlcIq6NpRddVJtds7Idz2XU//uffpbkfCvX6qrHfy8EwczQ887SKKigQSFk3dg9Ve+PXzePMBFzYyE+K0h5xFz387+mMCucxp74K9git7DSFLLtWoeolfV9TKAqrIid4rW/PRpDRgj2GJDgesv60mVoqBeAXHCkmvBRzRmXse5vXMMagtHHnihMTd+11RfaqUUinI/GI6yVlE5ybh9GiXjq12J5y5MvE93YdAPwOMfdMd5/b6P6J8d37eEk8D5vySuvKG+3Q6MRqck8HRh4aA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z2oJMKUxhFWnGgTMMyIt2onYYNMk29bQma+DcdnGhJ8=; b=mhQMjWsA0BjA3Xagg9M+zdh0vVzOtl2RyxYhjpZsTuCETTKA5nnNEZTIL4yaUsSQjmvXeKUlOghrWGEbhkaFZ9jz/hj4HdhGgW7stVTh9ekpY5zh/yQ1TrCGb2kmz61iHYeieTceyhyo1nKpAqj/0BRQ0DaB8AvxMy2uod/hH0zR/048r3DqcsPm55CMAlWzJNcpEXwD0TqUn/UYZ+7p8Y5oEfk/9qTy4FlYx6qpmpbt7GHpUBrQSo347c6fBoNxMYm5+ztiWGGDWdzqO7tcKPTj1H18m9BBjLxAv6euRgs0vu9kA80ankZKFRCqkfvg5E2K4XMmQuKIjTs9XMu5ew== Received: from AM6EUR05FT062.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::4f) by AM6EUR05HT123.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::457) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Thu, 18 Jun 2020 13:06:04 +0000 Received: from VI1PR02MB4703.eurprd02.prod.outlook.com (2a01:111:e400:fc11::44) by AM6EUR05FT062.mail.protection.outlook.com (2a01:111:e400:fc11::254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Thu, 18 Jun 2020 13:06:04 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1BC439B0F96B447B4297BA95F0F551A035324FD7FC4E6536FBCC59D4B101BED9;UpperCasedChecksum:042DB80900BC774DA07DA8187B4A60104E621FC7F74DC74373BC5C50E8311124;SizeAsReceived:8912;Count:49 Received: from VI1PR02MB4703.eurprd02.prod.outlook.com ([fe80::140a:b085:c1f0:e35]) by VI1PR02MB4703.eurprd02.prod.outlook.com ([fe80::140a:b085:c1f0:e35%4]) with mapi id 15.20.3088.029; Thu, 18 Jun 2020 13:06:04 +0000 Content-Type: text/plain; charset=utf-8 In-Reply-To: Date: Thu, 18 Jun 2020 15:06:01 +0200 Cc: PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Benas IML X-Mailer: Apple Mail (2.3445.104.11) X-ClientProxiedBy: PR0P264CA0175.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1c::19) To VI1PR02MB4703.eurprd02.prod.outlook.com (2603:10a6:803:8f::13) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2001:7e8:cb71:d400:acbd:faf1:907b:7654] (2001:7e8:cb71:d400:acbd:faf1:907b:7654) by PR0P264CA0175.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Thu, 18 Jun 2020 13:06:03 +0000 X-Mailer: Apple Mail (2.3445.104.11) X-Microsoft-Original-Message-ID: X-TMN: [4Iz9xUl0950Q9ajgyBB6+2AHnMxn8VPF9KMqCx08NcNYtjppYOXuNpXMPVOwTQbO] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 7abf19a7-965b-47ee-e581-08d813885ae4 X-MS-TrafficTypeDiagnostic: AM6EUR05HT123: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jZpz2CzCMa5y8pSMKfFzVNu17IUHI26sZGe17VFzYCC+ji8AKyKMnaSehLbP7TAg6cyl0lsg4mGjkyEWnYric7hD/hss+0ZzypKl7VZSUjGYoGvHNL2abe1J0bKei6APlApmVGz1/2SsBqVj/AjIn3gCaErGpYOr2iR2/XLW7mKfXLu9erq1H33T3BQ46uq2acgquxK8cBuZyZTQHaDkV6PfG0bKYFMf5j5LFid6rtvxey0XF7LoTt+Zpm23cj4R X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR02MB4703.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: DNqpGMdrUjs2sPetKtIy3KmODBwWd8+F1qi0eL1bwVYrfQIki3wqO+2HjG4F0HL67ERD6c+200735x49xoxrb67icSih2lk4Efzg72W0gX4rIb/DN3gZhtUCgeKEZOhkplAc96txvT6L3aQorR6gGBDd9ZTTt7nGpZhtYMSt3SXBT/Tk82LlwBHewEUrbbDm2fF04Fjs/UxcAWRMtvl2bA== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7abf19a7-965b-47ee-e581-08d813885ae4 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2020 13:06:03.9342 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6EUR05HT123 Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Make constructors and destructors return void From: bobwei9@hotmail.com (Bob Weinand) > Am 17.06.2020 um 01:10 schrieb Benas IML : >=20 > Hey internals, >=20 > This is a completely refined, follow-up RFC to my original RFC. Based on = the > feedback I have received, this PR implements full validation and implicit= ly > enforces `void` rules on constructors/destructors while also allowing to > declare an **optional** explicit `void` return type. Note, that there is = a > small but justifiable BC break (as stated by the RFC). >=20 > RFC: https://wiki.php.net/rfc/make_ctor_ret_void >=20 > Best regards, > Benas Seliuginas Hey Benas, I do not see any particular benefit from that RFC. Regarding what the manual states - the manual is wrong there and thus shoul= d be fixed in the manual. This is not an argument for changing engine behav= iour. Sometimes a constructor (esp. of a parent class) or destructor may be calle= d manually. Sometimes you have valid information to pass from the parent cl= ass. With your RFC an arbitrary restriction is introduced necessitating an extra= method instead. In general that RFC feels like "uh, __construct and __destruct are mostly v= oid, so let's enforce it =E2=80=A6 because we can"? On these grounds and it being an additional (albeit mostly small) unnecessa= ry BC break, I'm not in favor of that RFC. Bob=