Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32833 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97239 invoked by uid 1010); 17 Oct 2007 16:09:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97224 invoked from network); 17 Oct 2007 16:09:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2007 16:09:29 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 85.10.196.195 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 85.10.196.195 serveforce1.backendmedia.com Linux 2.6 Received: from [85.10.196.195] ([85.10.196.195:52189] helo=serveforce1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/73-05004-8B336174 for ; Wed, 17 Oct 2007 12:09:29 -0400 Received: from [192.168.1.44] (56-246.6-85.cust.bluewin.ch [85.6.246.56]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by serveforce1.backendmedia.com (Postfix) with ESMTP id 5A2FF12241A9 for ; Wed, 17 Oct 2007 18:13:03 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net (PHP Developers Mailing List ) Date: Wed, 17 Oct 2007 18:09:15 +0200 X-Mailer: Apple Mail (2.752.3) X-backendmedia-com-MailScanner-Information: Please contact the ISP for more information X-backendmedia-com-MailScanner: Found to be clean X-backendmedia-com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.122, required 6, AWL 0.02, RDNS_DYNAMIC 0.10) X-backendmedia-com-MailScanner-From: mls@pooteeweet.org X-Spam-Status: No Subject: exception policy for core From: mls@pooteeweet.org (Lukas Kahwe Smith) Hi, I remember that we discussed the question of exception throwing from core in the very early days of php 5, when the suggestion of turning all errors into exceptions first came up. I remember that we decided that exceptions should only be thrown from core on constructor errors by default. Along the lines of PDO, extensions could allow users to explicitly enable an exception mode. This popped up again as I picked up on IRC that the imagick extension is quite exception throwing happy. I do realize that this is a pecl extension, so maybe core rules do not apply (core<->pecl relations should also be addressed ASAP if you ask me). Anywas, am I remembering things correctly? Is this still our policy? If not do we have (want?) a policy? Either way, could we get a decision (or the fact that we do not want a decision) added to the coding standards? regards, Lukas