Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19944 invoked from network); 15 Mar 2015 16:17:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 16:17:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:36630] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/00-29489-EA0B5055 for ; Sun, 15 Mar 2015 11:17:51 -0500 Received: by wetk59 with SMTP id k59so22747748wet.3 for ; Sun, 15 Mar 2015 09:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=NSJA+bp8o6kslfe1TN6e5J+RUNeT+XhVwQEVagxGilk=; b=Xl6TF4qS3sDoECuIoK+cx5xIBKg336Hb2PIfBXDZ8c4hRJnAyotftwN0dzJ8MTIaOf jkas5ns8qt/MMOlTIzill8S0WF27+xreDBd6HmLLiTDzXakREQlUtmb+BgX4nRjw+CfL YUpPeR/8iMOqPlvZlRx/E209Dsv8HPrtluMA4jwfz9NILVsi7r4ecpi4q97mIxGPHn6C MgZ+uzH4S3DQzlP5EzV65960I1ZGNre9rkHLahn9nRbcwb7OuhXYCgY6gYUAK5zon9mg oRLsn+NhaGYrikk8M94Y9b8RmbbNE0vZ2wjd6oUKJHX/VeX0VrSqQjWNYtpkvJLIhLwH 30nA== X-Received: by 10.180.104.66 with SMTP id gc2mr156430752wib.34.1426436267900; Sun, 15 Mar 2015 09:17:47 -0700 (PDT) Received: from lepisma.bemi (89-104-28-113.customer.bnet.at. [89.104.28.113]) by mx.google.com with ESMTPSA id dm6sm11497641wib.22.2015.03.15.09.17.46 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Mar 2015 09:17:47 -0700 (PDT) Sender: Michael Wallner Content-Type: multipart/alternative; boundary="Apple-Mail=_F29A594F-C308-4AF5-AC41-4396DA7F3C9C" Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: Date: Sun, 15 Mar 2015 17:17:45 +0100 Cc: "internals@lists.php.net" Message-ID: References: To: Dan Ackroyd X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes From: mike@php.net (Michael Wallner) --Apple-Mail=_F29A594F-C308-4AF5-AC41-4396DA7F3C9C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 15 03 2015, at 17:09, Dan Ackroyd wrote: >=20 > Hi List, >=20 > The 'Constructor behaviour of internal classes' RFC is now in voting. > Please note, it's the coding standard that is being voted on. If > anyone thinks I've implemented the changes in a way that is less > awesome then there is no reason the changes couldn't be improved. >=20 > Additionally, while writing the change I noticed some things that were > already present in the code, that are outside the scope of the RFC but > ought to be fixed for the release of PHP 7. >=20 > * Multiple examples of a generic Exception being thrown rather than a > specific exception being thrown. >=20 > * Code generating an error notice and throwing an exception. It should > be one or the other, not both. >=20 > * The text of exceptions in Intl not always being as informative as > the error message, which could be improved. >=20 > But as I said, the vote is on whether the standard behaviour of either > returning a working instance or throwing an exception, is the standard > behaviour we want in PHP. >=20 >=20 For the lazy people, like me: https://wiki.php.net/rfc/internal_constructor_behaviour#voting = --Apple-Mail=_F29A594F-C308-4AF5-AC41-4396DA7F3C9C--