Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89848 invoked from network); 17 Jan 2015 16:19:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2015 16:19:17 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.212.173 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:43391] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/00-24029-28B8AB45 for ; Sat, 17 Jan 2015 11:19:15 -0500 Received: by mail-wi0-f173.google.com with SMTP id r20so7878934wiv.0 for ; Sat, 17 Jan 2015 08:19:11 -0800 (PST) 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-type; bh=kd24Qft0PDrDwoT/wqenTp8cVVBEskS/Px5B02U4B/Q=; b=LH71qZtE1MiJQOcAe67ry3vzujoF9nmdTXf2wQyP3mbSz3G3SiPFT2Y/FU31PLIZfW dZxn2RilhAggKAWeWqwsc1CG5ee+PJn0fTrpEqukeFZ2nTxCli/m3gaMkDq2pj6f8o07 xo6oWiLpvz1AnRcfHPqpPsnMAvDDuyoDPBQCWGq2ykjjKQnucG75ilsZqe88H9cXALYR abCk/fuWZv4FWYUPY6/mIU2dbjMuBjxpzIHmmtDjbG9f+tlwTgIbm1GXq9KjliO7Lfyy Ur/91XgRknye5H8m/uUHcvn5Xx0JT4EkEJAul4Q8iB1jjv8LkmEPyztT6hSY7nq87jCg 7Y0A== X-Gm-Message-State: ALoCoQkITX7/9iU7QTnqxn849NSg2Ne1+TaXzDv0u8DxPs+TGwmyEU0A8U3djwUS0yX3kFowix9w MIME-Version: 1.0 X-Received: by 10.180.8.202 with SMTP id t10mr17616022wia.15.1421511551654; Sat, 17 Jan 2015 08:19:11 -0800 (PST) Received: by 10.216.94.196 with HTTP; Sat, 17 Jan 2015 08:19:11 -0800 (PST) X-Originating-IP: [78.149.5.244] In-Reply-To: References: <003201d0326b$6fd27f60$4f777e20$@tekwire.net> <23490588-0131-4B0F-A7AA-C9C8C766626C@ajf.me> Date: Sat, 17 Jan 2015 16:19:11 +0000 Message-ID: To: Rowan Collins Cc: Andrea Faulds , francois@tekwire.net, "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Class constructor behaviour From: danack@basereality.com (Dan Ackroyd) On 17 January 2015 at 16:04, Rowan Collins wrote: > The difference is that AFAIK all the exceptions returned by OOP extensions right now are of classes specific to that extension, whereas this would be a global engine-thrown exception. Sorry - I wasn't clear. I didn't mean they should throw generic exceptions; they definitely should throw exceptions specific to the code being called. To a very large part these exceptions already exist: The intl extension has: http://php.net/manual/en/class.intlexception.php The reflection extension has: http://php.net/manual/en/class.reflectionexception.php For the intl extension, these are already in use in some places, if the user has set "intl.use_exceptions". This is why I think most, if not all, of the work would need to be done before an RFC could be voted on - it's one of those cases where people could disagree with details of the RFC, even if they agreed in the general idea. cheers Dan