Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59349 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71983 invoked from network); 4 Apr 2012 02:59:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Apr 2012 02:59:29 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.216.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:44488] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/E9-06658-119BB7F4 for ; Tue, 03 Apr 2012 22:59:29 -0400 Received: by qcmt36 with SMTP id t36so253102qcm.29 for ; Tue, 03 Apr 2012 19:59:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=7ZphNWRbAYAhgPABBU0K6/4pWN/u9nvJbR/eXa3en+g=; b=GdiKO+AYUigbFJrxO7G4tfaGIK79FbvtQED4x24qzeCzj4SxNpoNiYW9uKa1L4Q4KK 2GER7oX387S7eA4InKYXo1b4oYlcuy51z1vGzyTBL9KeZD0dAlLZtOzdoFtRinWrcwhY ncuW8julkD4wpeQPdvsrLrw/BNnFL2GDNB/K71zO0q96L2RD8+WRr9RDdUYZ8Z4gHBbt +7dkNmLC3/9vDs9G7eQ4OyWaPnWxcP8YpfgP4mEQN8VrDcK883o2iJy6Cw5jaQ/xT2Nd 2CidwI9xNFrbiRjNRReplgiO9tE35aJaUGHtXy8qgdwediSP6aKbYUCR3X8Px9FEz/IC 85jg== Received: by 10.224.116.5 with SMTP id k5mr20417959qaq.19.1333508366131; Tue, 03 Apr 2012 19:59:26 -0700 (PDT) Received: from [192.168.200.5] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id dr10sm7274278qab.14.2012.04.03.19.59.24 (version=SSLv3 cipher=OTHER); Tue, 03 Apr 2012 19:59:25 -0700 (PDT) Message-ID: <4F7BB90B.9040907@lerdorf.com> Date: Tue, 03 Apr 2012 19:59:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0 MIME-Version: 1.0 To: Alan Knowles CC: internals@lists.php.net References: <4F7BABC8.7040904@akbkhome.com> In-Reply-To: <4F7BABC8.7040904@akbkhome.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnzwuzplMANI+HbMeERYcJzNRww3LTNHfXuJcPWqcPhNJeKEC/cw2JugJKyh+/GwIJUyzd+ Subject: Re: [PHP-DEV] Catchable - marking methods just like static? From: rasmus@lerdorf.com (Rasmus Lerdorf) On 04/03/2012 07:02 PM, Alan Knowles wrote: > I just saw Daniel changing some of the PEAR classes to use Exceptions, > and it's pretty clear that this could cause havoc with the end users. > The problem being that there is no 'soft' landing for the migration > process. > > Users switching code from return style error handling to exceptions are > not given any hints about what would be affected, and what may need fixing. Couldn't you just use a default exception handler via set_exception_handler() to implement a "soft landing" mechanism? -Rasmus