Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17954 invoked from network); 15 Mar 2015 16:09:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 16:09:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.160.179 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.160.179 mail-yk0-f179.google.com Received: from [209.85.160.179] ([209.85.160.179:34605] helo=mail-yk0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/AF-29489-5AEA5055 for ; Sun, 15 Mar 2015 11:09:10 -0500 Received: by ykfc206 with SMTP id c206so3656120ykf.1 for ; Sun, 15 Mar 2015 09:09:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=6OHu88q7q/NVXvQze1usdKcVGPTUt6y/Qpr0DNpE6rQ=; b=btzRblHecf0JDrdkXCuIb2eaBCmxNzcB1/dngfL3vvLdqkngyhG+ruxCklmKwiQn2r SFsMvHLmcllwX1AGkX8AQQCmRT7aqkGXO/8DQR+GfVIr9LD8cm49QnsHg6/QtRRmLQxD bGk0T4rEmsVzSxuQYySqB2sZg+igRtKSnsZeozDgK+9kTJAUDRNZvfu7c7UpXoTGqK2X fzYuKDtieFFy4KrpAhfGJNUwsvcgfMQo/VK4m1STlgV1ihJGfHxGzebLjqqF4PxLTPta ofSC4thGBnuJXzbscVwMDQKSHcIvQ6wW8GxbqGZWc15sQ8JGcKozF6PH55ddM7lkkXYG yzxg== X-Gm-Message-State: ALoCoQlBkE7mjaEE6qVbO0aPWzm2x7wLqjMBBaK6eJfrr+7oL8Ml18y4YKB7MrTB98aVtB5ywMX8 MIME-Version: 1.0 X-Received: by 10.170.202.7 with SMTP id t7mr64488544yke.13.1426435747173; Sun, 15 Mar 2015 09:09:07 -0700 (PDT) Received: by 10.170.71.86 with HTTP; Sun, 15 Mar 2015 09:09:07 -0700 (PDT) X-Originating-IP: [78.147.4.32] Date: Sun, 15 Mar 2015 16:09:07 +0000 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: [RFC][VOTE] Constructor behaviour of internal classes From: danack@basereality.com (Dan Ackroyd) Hi List, 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. 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. * Multiple examples of a generic Exception being thrown rather than a specific exception being thrown. * Code generating an error notice and throwing an exception. It should be one or the other, not both. * The text of exceptions in Intl not always being as informative as the error message, which could be improved. 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. cheers Dan Ack