Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75832 invoked from network); 16 Jul 2015 00:34:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2015 00:34:21 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.43 mail-qg0-f43.google.com Received: from [209.85.192.43] ([209.85.192.43:35108] helo=mail-qg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/B0-05015-A0CF6A55 for ; Wed, 15 Jul 2015 20:34:18 -0400 Received: by qget71 with SMTP id t71so1068676qge.2 for ; Wed, 15 Jul 2015 17:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3t8mXj3OAjSWhQdTv7BYNck/uXtHl/iSkW0LJzSUjTM=; b=qJcT9uw0gokiHJqdSDbN2fqXz0Iv8e+8AJwN1z6eTCWqiEhafVhxh4OsPj6srFfBp5 m1frpFWORQyJLJ0kUuJNhN8QYAGROVocS72Pk/o7W+p/n+y52W/D9jOvjIfhinT89KYo gdhgWmsnBLD+/CCQWRK8W42V9JmY7Y1cZkwcFffB6vXSdHKD21lm50vnN0ofc0T0zGYy CCq1uUiMgICq98Eqv14WvvSfA2Bc8KRSPVKtVBKTtWyGbZAh5brw0TasxCwzqUW2gZsd PwrnMuHfGtqnJriSlSgJAeSlRQ20JvfINHCR3v9CnAov2lECEYy7es8m7vvrJSclHX3J IX0g== MIME-Version: 1.0 X-Received: by 10.140.20.204 with SMTP id 70mr13225106qgj.26.1437006855630; Wed, 15 Jul 2015 17:34:15 -0700 (PDT) Received: by 10.96.154.195 with HTTP; Wed, 15 Jul 2015 17:34:15 -0700 (PDT) In-Reply-To: References: <55A63C90.8000705@gmail.com> <55A64B40.4000609@gmail.com> Date: Thu, 16 Jul 2015 07:34:15 +0700 Message-ID: To: Yasuo Ohgaki Cc: Rowan Collins , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: pierre.php@gmail.com (Pierre Joye) On Thu, Jul 16, 2015 at 4:58 AM, Yasuo Ohgaki wrote: > I understand many of us dislike INI switch nor runtime switch that changes > behavior. However, it's impossible to move to exception at once because we > have no control for users' code including 3rd party modules. Well, ini settiing remains ugly. Code will have to take care of it and this is not going to be a good thing. > IMHO. Rather than adding exception adopted functions gradually, having the > switch > is better for in the long run. We may deprecate/remove the switch 10 years > later or more. > > BTW, I'm thinking to have > "ModulenameException"/"ModulenameFunctionException" > or like rather than simply calling/converting errors to ErrorException when > exception > is enabled for functions. I am not sure I like this idea. I would prefer to define namespace and rely on standard names (when possible) and per extension namespace instead. I also agree to actually deal with exceptions globally at once instead of incremental additions in more or less random places, functions or methods. Cheers, -- Pierre @pierrejoye | http://www.libgd.org