Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-19 Thread Yasuo Ohgaki
Hi all, On Sun, May 17, 2015 at 8:44 AM, Levi Morrison le...@php.net wrote: On Sat, May 16, 2015 at 2:17 PM, Rowan Collins rowan.coll...@gmail.com wrote: On 16/05/2015 20:15, Levi Morrison wrote: The difference is that as time goes on and I've written code for PHP 7 I was hit by this

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-18 Thread Rowan Collins
Dan Ackroyd wrote on 18/05/2015 18:38: On 18 May 2015 at 15:39, Levi Morrison le...@php.net wrote: I wouldn't group TypeException in the same subtree as ParseException, for instance. One happens at compile time and the other at run time, which means the intent in what you catch is probably

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-18 Thread Levi Morrison
On Sun, May 17, 2015 at 11:44 AM, Rowan Collins rowan.coll...@gmail.com wrote: On 17 May 2015 16:02:40 BST, Levi Morrison le...@php.net wrote: In this specific case we have broken all code out there. Yes, in the very specific case of people who both caught all exceptions and handled all

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-17 Thread Levi Morrison
On Sun, May 17, 2015 at 7:10 AM, Rowan Collins rowan.coll...@gmail.com wrote: On 17 May 2015 00:44:03 BST, Levi Morrison le...@php.net wrote: On Sat, May 16, 2015 at 2:17 PM, Rowan Collins rowan.coll...@gmail.com wrote: On 16/05/2015 20:15, Levi Morrison wrote: The difference is that as time

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-17 Thread Rowan Collins
On 17 May 2015 16:02:40 BST, Levi Morrison le...@php.net wrote: In this specific case we have broken all code out there. Yes, in the very specific case of people who both caught all exceptions and handled all E_RECOVERABLE errors, the existence of Throwable introduces a slightly worse BC break

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-17 Thread Rowan Collins
On 17 May 2015 00:44:03 BST, Levi Morrison le...@php.net wrote: On Sat, May 16, 2015 at 2:17 PM, Rowan Collins rowan.coll...@gmail.com wrote: On 16/05/2015 20:15, Levi Morrison wrote: The difference is that as time goes on and I've written code for PHP 7 I was hit by this issue. It's an even

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
On Sat, May 16, 2015 at 11:51 AM, Levi Morrison le...@php.net wrote: This was the subject of a separate vote in the RFC, which passed by 39 votes to 19. https://wiki.php.net/rfc/engine_exceptions_for_php7 The subject of discussion at present is the exact naming of the various

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Rowan Collins
On 16/05/2015 20:15, Levi Morrison wrote: The difference is that as time goes on and I've written code for PHP 7 I was hit by this issue. It's an even bigger issue than even I realized during voting. How many people who voted on that issue have played with the code from both scenarios? Few, I

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
On Sat, May 16, 2015 at 12:28 PM, Stanislav Malyshev smalys...@gmail.com wrote: Hi! There's nothing that prevents us from reneging on that by another vote. If it's a bad decision backed by logical arguments then we can That's a pretty big if, given that your only argument - that it is a BC

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Stanislav Malyshev
Hi! You are incorrect. The set of exceptions that `catch (Exception)` catches is all exceptions by its definition. By altering it to no There's no such definition. It's invented to serve your point, which makes it circular logic. catch(Exception) catches everything that descends from

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Stanislav Malyshev
Hi! There's nothing that prevents us from reneging on that by another vote. If it's a bad decision backed by logical arguments then we can That's a pretty big if, given that your only argument - that it is a BC break - is incorrect, as in fact the set of exceptions caught before and after

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
On Sat, May 16, 2015 at 12:28 PM, Stanislav Malyshev smalys...@gmail.com wrote: Hi! There's nothing that prevents us from reneging on that by another vote. If it's a bad decision backed by logical arguments then we can That's a pretty big if, given that your only argument - that it is a BC

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
I want to talk about the BC impact of what has been discussed. Currently the meaning of this code is to catch all possible exceptions, because all exceptions *must* extend `\Exception`: } catch (Exception $e) { By making some other root exception you just broke all the code that is

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
On Sat, May 16, 2015 at 12:44 PM, Levi Morrison le...@php.net wrote: On Sat, May 16, 2015 at 12:28 PM, Stanislav Malyshev smalys...@gmail.com wrote: Hi! There's nothing that prevents us from reneging on that by another vote. If it's a bad decision backed by logical arguments then we can

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Rowan Collins
On 16/05/2015 19:44, Levi Morrison wrote: On Sat, May 16, 2015 at 12:28 PM, Stanislav Malyshev smalys...@gmail.com wrote: Hi! There's nothing that prevents us from reneging on that by another vote. If it's a bad decision backed by logical arguments then we can That's a pretty big if, given

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Rowan Collins
On 16/05/2015 15:40, Levi Morrison wrote: I want to talk about the BC impact of what has been discussed. Currently the meaning of this code is to catch all possible exceptions, because all exceptions *must* extend `\Exception`: } catch (Exception $e) { By making some other root exception

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Stanislav Malyshev
Hi! The key is that I feel like the voting body wasn't well informed. It's not because I lost; rather it's because I feel like the people voting yes didn't actually understand the issues at play. There is a big difference between that and revoting after a vote didn't go my way as an effort

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Stanislav Malyshev
Hi! The thrown object must be an instance of the Exception class or a subclass of Exception. This is still true for objects that are thrown from userspace, AFAIK. If not, we can make it true, I have no objection to it. This however gives your no guarantee catch(Exception) catches everything

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
This was the subject of a separate vote in the RFC, which passed by 39 votes to 19. https://wiki.php.net/rfc/engine_exceptions_for_php7 The subject of discussion at present is the exact naming of the various classes/interfaces, not the general nature of the hierarchy. There's nothing that

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
On Sat, May 16, 2015 at 1:13 PM, Stanislav Malyshev smalys...@gmail.com wrote: Hi! The key is that I feel like the voting body wasn't well informed. It's not because I lost; rather it's because I feel like the people voting yes didn't actually understand the issues at play. There is a big

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
On Sat, May 16, 2015 at 2:17 PM, Rowan Collins rowan.coll...@gmail.com wrote: On 16/05/2015 20:15, Levi Morrison wrote: The difference is that as time goes on and I've written code for PHP 7 I was hit by this issue. It's an even bigger issue than even I realized during voting. How many people

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-16 Thread Levi Morrison
On Sat, May 16, 2015 at 5:44 PM, Levi Morrison le...@php.net wrote: On Sat, May 16, 2015 at 2:17 PM, Rowan Collins rowan.coll...@gmail.com wrote: On 16/05/2015 20:15, Levi Morrison wrote: The difference is that as time goes on and I've written code for PHP 7 I was hit by this issue. It's an

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-14 Thread Pavel Kouřil
On Wed, May 13, 2015 at 9:38 AM, Sebastian Bergmann sebast...@php.net wrote: Am 13.05.2015 um 08:30 schrieb Pierre Joye: Why don't you do it? You have access and you are a very good writer. No big C knowledge required either in this case :) There was/is consensus on what I proposed back in

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-13 Thread Julien Pauli
On Wed, May 13, 2015 at 9:38 AM, Sebastian Bergmann sebast...@php.net wrote: Am 13.05.2015 um 08:30 schrieb Pierre Joye: Why don't you do it? You have access and you are a very good writer. No big C knowledge required either in this case :) There was/is consensus on what I proposed back

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-13 Thread Pierre Joye
On May 13, 2015 12:43 PM, Sebastian Bergmann sebast...@php.net wrote: Am 13.05.2015 um 07:40 schrieb Stanislav Malyshev: I can, except that I'm pretty busy right now. But probably will have some time on the weekend, so I've put it on my todo list. Thanks! Why don't you do it? You have

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-13 Thread Sebastian Bergmann
Am 13.05.2015 um 08:30 schrieb Pierre Joye: Why don't you do it? You have access and you are a very good writer. No big C knowledge required either in this case :) TBH, until know I did not think I would be capable of doing it myself. I'll look into it now. -- PHP Internals - PHP Runtime

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-13 Thread Sebastian Bergmann
Am 13.05.2015 um 08:30 schrieb Pierre Joye: Why don't you do it? You have access and you are a very good writer. No big C knowledge required either in this case :) There was/is consensus on what I proposed back in February: * Introduce a Throwable interface * Let Exception implement the

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-12 Thread Sebastian Bergmann
Am 13.05.2015 um 07:40 schrieb Stanislav Malyshev: I can, except that I'm pretty busy right now. But probably will have some time on the weekend, so I've put it on my todo list. Thanks! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-12 Thread Stanislav Malyshev
Hi! OK, if there's consensus we can go forward with this, then let's just do that ASAP. Can you implement this? Thanks! I can, except that I'm pretty busy right now. But probably will have some time on the weekend, so I've put it on my todo list. -- Stas Malyshev smalys...@gmail.com --

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-08 Thread David Zuelke
I feel like this one is different though, because there already was consensus that the current naming isn't the best, and there was support for Throwable, while voting on the original RFC was still open. To adhere to the RFC process, the open RFC wasn't changed accordingly, because voting was

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-08 Thread Sebastian Bergmann
Am 09.05.2015 um 06:38 schrieb Stanislav Malyshev: OK, if there's consensus we can go forward with this, then let's just do that ASAP. Can you implement this? Thanks! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-08 Thread Stanislav Malyshev
Hi! I feel like this one is different though, because there already was consensus that the current naming isn't the best, and there was support for Throwable, while voting on the original RFC was still open. OK, if there's consensus we can go forward with this, then let's just do that ASAP.

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-01 Thread Sebastian Bergmann
Am 01.05.2015 um 07:08 schrieb Pierre Joye: Let do a rfc to accept to post pone features freeze with a list or a single RFC. Do you volunteer to draft that RFC? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-01 Thread Pierre Joye
On Fri, May 1, 2015 at 1:04 PM, Sebastian Bergmann sebast...@php.net wrote: Am 01.05.2015 um 07:08 schrieb Pierre Joye: Let do a rfc to accept to post pone features freeze with a list or a single RFC. Do you volunteer to draft that RFC? I could but no, I am not volunteering. For many

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-30 Thread Marc Bennewitz
Am 30.04.2015 um 14:30 schrieb Julien Pauli: On Thu, Apr 30, 2015 at 6:51 AM, Sebastian Bergmann sebast...@php.net wrote: Am 30.04.2015 um 02:50 schrieb Stanislav Malyshev: I like the idea, however we do have the deadline and the deadline has been passed. So I wonder if we can't keep it for

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-30 Thread Julien Pauli
On Thu, Apr 30, 2015 at 6:51 AM, Sebastian Bergmann sebast...@php.net wrote: Am 30.04.2015 um 02:50 schrieb Stanislav Malyshev: I like the idea, however we do have the deadline and the deadline has been passed. So I wonder if we can't keep it for 7.1 That means introducing a change in

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-30 Thread Sebastian Bergmann
Am 30.04.2015 um 14:30 schrieb Julien Pauli: We could make an exception (sic !) and add the Throwable interface to PHP7, even after feature freeze, because it is an easy pick and having a clear Exception model for 7.0 is to my opinion very important. +1, couldn't agree more. -- PHP

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-30 Thread Stanislav Malyshev
Hi! We could make an exception (sic !) and add the Throwable interface to PHP7, even after feature freeze, because it is an easy pick and having a clear Exception model for 7.0 is to my opinion very important. I'm OK with it but I fear this is opening a can of worms, since people will start

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-30 Thread Marcio Almada
Hi Stas, 2015-04-30 13:51 GMT-03:00 Stanislav Malyshev smalys...@gmail.com: Hi! We could make an exception (sic !) and add the Throwable interface to PHP7, even after feature freeze, because it is an easy pick and having a clear Exception model for 7.0 is to my opinion very important.

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-30 Thread Pierre Joye
On May 1, 2015 1:24 AM, Marcio Almada marcio.w...@gmail.com wrote: Hi Stas, 2015-04-30 13:51 GMT-03:00 Stanislav Malyshev smalys...@gmail.com: Hi! We could make an exception (sic !) and add the Throwable interface to PHP7, even after feature freeze, because it is an easy pick and

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-29 Thread Sebastian Bergmann
Am 21.03.2015 um 18:05 schrieb Sebastian Bergmann: The vote for this missed the boat for the PHP 7 deadline. However, if we really want to do this we should do it in PHP 7 or not at all (at least not for a long time) due to BC breaks. Thoughts? ping -- PHP Internals - PHP Runtime

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-29 Thread Stanislav Malyshev
Hi! The vote for this missed the boat for the PHP 7 deadline. However, if we really want to do this we should do it in PHP 7 or not at all (at least not for a long time) due to BC breaks. Thoughts? It's kind of hard to recover the context here, but I assume it's

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-04-29 Thread Sebastian Bergmann
Am 30.04.2015 um 02:50 schrieb Stanislav Malyshev: I like the idea, however we do have the deadline and the deadline has been passed. So I wonder if we can't keep it for 7.1 That means introducing a change in 7.0, changing it and deprecating part of it in 7.1, and removing said part in

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-25 Thread Yasuo Ohgaki
Hi Sebastian, On Sun, Mar 22, 2015 at 2:05 AM, Sebastian Bergmann sebast...@php.net wrote: Am 15.03.2015 um 08:27 schrieb Sebastian Bergmann: It was my idea, after all, only fair that I invest the time to make it into an RFC: https://wiki.php.net/rfc/throwable The vote for this missed

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-21 Thread Sebastian Bergmann
Am 15.03.2015 um 09:24 schrieb Pavel Kouřil: why global namespace? Because that is where, as of today, built-in classes, interfaces, functions, etc. go. The introduction of a PHP namespace, for instance, would be the topic of a separate RFC. -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-21 Thread Sebastian Bergmann
Am 15.03.2015 um 08:27 schrieb Sebastian Bergmann: It was my idea, after all, only fair that I invest the time to make it into an RFC: https://wiki.php.net/rfc/throwable The vote for this missed the boat for the PHP 7 deadline. However, if we really want to do this we should do it in PHP 7

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-15 Thread Sebastian Bergmann
Am 15.03.2015 um 08:07 schrieb Sebastian Bergmann: So who will draft the RFC for * Introduce a Throwable interface * Let Exception implement the Throwable interface * Introduce an Error class that implements the Throwable interface * Use Error class as base class for exceptions

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-15 Thread Sebastian Bergmann
Am 27.02.2015 um 15:47 schrieb Jordi Boggiano: quickly draft another RFC to amend that part So who will draft the RFC for * Introduce a Throwable interface * Let Exception implement the Throwable interface * Introduce an Error class that implements the Throwable interface * Use

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-15 Thread Pavel Kouřil
On Sun, Mar 15, 2015 at 8:27 AM, Sebastian Bergmann sebast...@php.net wrote: Am 15.03.2015 um 08:07 schrieb Sebastian Bergmann: So who will draft the RFC for * Introduce a Throwable interface * Let Exception implement the Throwable interface * Introduce an Error class that

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-09 Thread Dan Ackroyd
On 9 March 2015 at 11:04, David Zuelke d...@heroku.com wrote: Why not wait with the merge until a consensus emerges regarding Throwable? The patch for engine exceptions is large - the longer that it is left unmerged, the more difficult it will be to do and people's time is valuable. It also

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-09 Thread Bob Weinand
Am 09.03.2015 um 12:04 schrieb David Zuelke d...@heroku.com: Why not wait with the merge until a consensus emerges regarding Throwable? On 09.03.2015, at 05:26, Nikita Popov nikita@gmail.com wrote: On Mon, Feb 23, 2015 at 7:15 PM, Nikita Popov nikita@gmail.com wrote: Hi

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-09 Thread Sebastian Bergmann
Am 09.03.2015 um 12:40 schrieb Dan Ackroyd: So even though I hope we can clean up the exception hierarchy, merging the engine exceptions is the right choice imo. Sounds reasonable to me. I'm wondering, though, whether we really need an additional RFC for the change I suggested as nobody spoke

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-09 Thread David Zuelke
Why not wait with the merge until a consensus emerges regarding Throwable? On 09.03.2015, at 05:26, Nikita Popov nikita@gmail.com wrote: On Mon, Feb 23, 2015 at 7:15 PM, Nikita Popov nikita@gmail.com wrote: Hi internals! Voting on the engine exceptions RFC, which proposes to

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-07 Thread Pascal Martin, AFUP
Le 23/02/2015 19:15, Nikita Popov a écrit : Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into exceptions, has opened: https://wiki.php.net/rfc/engine_exceptions_for_php7#vote Hi, After discussing the main proposition of this

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-07 Thread Stanislav Malyshev
Hi! Message-ID: 54f07fc7.8050...@php.net Date: Fri, 27 Feb 2015 15:31:35 +0100 Guilherme volunteered to create a new RFC for the Throwable interface immediately after this RFC is accepted. Sounds good to me :-) I would say create the RFC :) Nothing says we should immediately rush

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-07 Thread Sebastian Bergmann
Am 23.02.2015 um 19:15 schrieb Nikita Popov: Voting is open until 2015-03-08. Voting ends today and it looks like the RFC will be accepted. How should we proceed with regards to the comments I made in Message-ID: 54f07fc7.8050...@php.net Date: Fri, 27 Feb 2015 15:31:35 +0100 Guilherme

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-01 Thread David Zuelke
+1000 on this; so much better than the BaseException stuff! On 27.02.2015, at 15:31, Sebastian Bergmann sebast...@php.net wrote: Am 23.02.2015 um 19:15 schrieb Nikita Popov: Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-01 Thread Dmitry Stogov
Please, write additional RFC if you are ready to work on it and provide implementation. The class hierarchy is definitely not the main part of this one. The idea was just to make difference between Exception, EngineException and ParseException. Thanks. Dmirty. On Fri, Feb 27, 2015 at 5:47

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread Sebastian Bergmann
Am 28.02.2015 um 01:57 schrieb Larry Garfield: The RFC is currently in voting, so editing it directly is a no-no. A new, short RFC, please. (Exception implements Throwable, Error implements Throwable sounds good to me. Should we ask about SomeUserspaceClass implements Throwable, or will

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread Sebastian Bergmann
Am 23.02.2015 um 19:15 schrieb Nikita Popov: Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into exceptions, has opened: https://wiki.php.net/rfc/engine_exceptions_for_php7#vote The primary vote requires a 2/3 majority, as

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread Jordi Boggiano
On 27/02/2015 14:31, Sebastian Bergmann wrote: Am 23.02.2015 um 19:15 schrieb Nikita Popov: Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into exceptions, has opened: https://wiki.php.net/rfc/engine_exceptions_for_php7#vote The

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread guilhermebla...@gmail.com
+1 on Sebastian's suggestion. =) I volunteer to either update the RFC or create a new one to resolve this once Exceptions in the engine passes (which looks like a reality already to me). Just tell me which approach I should take and I'll happily write the RFC. []s, On Fri, Feb 27, 2015 at 9:47

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread Larry Garfield
On 2/27/15 9:28 AM, guilhermebla...@gmail.com wrote: +1 on Sebastian's suggestion. =) I volunteer to either update the RFC or create a new one to resolve this once Exceptions in the engine passes (which looks like a reality already to me). Just tell me which approach I should take and I'll

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread Christoph Becker
Sebastian Bergmann wrote: I am sorry that I was unable to raise this concern earlier (did not really become aware of the RFC before it was put to the vote), but I would prefer the following: * Introduce a Throwable interface * Let Exception implement the Throwable interface *

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-24 Thread Yasuo Ohgaki
Hi all, On Tue, Feb 24, 2015 at 4:28 PM, Pavel Kouřil pajou...@gmail.com wrote: I personally find both BaseException and AbstractException ugly. The Throwable is IMHO much better. We definitely need coding(naming) standard :) We may have coding standard before PHP7 release and cleanup all.

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-24 Thread Yasuo Ohgaki
Hi all, On Tue, Feb 24, 2015 at 8:04 PM, Dennis Birkholz den...@birkholz.biz wrote: Am 23.02.2015 um 19:15 schrieb Nikita Popov: A second vote will decide whether to use a BaseException based inheritance hierarchy. This vote uses a simple majority. I like this RFC and hope it passes. I

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-24 Thread Martin Keckeis
2015-02-24 13:29 GMT+01:00 Yasuo Ohgaki yohg...@ohgaki.net: Hi all, On Tue, Feb 24, 2015 at 8:04 PM, Dennis Birkholz den...@birkholz.biz wrote: Am 23.02.2015 um 19:15 schrieb Nikita Popov: A second vote will decide whether to use a BaseException based inheritance hierarchy. This

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-24 Thread Dennis Birkholz
Hi, Am 23.02.2015 um 19:15 schrieb Nikita Popov: A second vote will decide whether to use a BaseException based inheritance hierarchy. This vote uses a simple majority. I like this RFC and hope it passes. I am a little concerned about littering the global namespace. It would be preferable to

[PHP-DEV] [VOTE] Exceptions in the engine

2015-02-23 Thread Nikita Popov
Hi internals! Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into exceptions, has opened: https://wiki.php.net/rfc/engine_exceptions_for_php7#vote The primary vote requires a 2/3 majority, as this is a language change. A second

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-23 Thread Yasuo Ohgaki
Hi Nikita, On Tue, Feb 24, 2015 at 3:15 AM, Nikita Popov nikita@gmail.com wrote: Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into exceptions, has opened: https://wiki.php.net/rfc/engine_exceptions_for_php7#vote The

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-23 Thread Pavel Kouřil
On Tue, Feb 24, 2015 at 12:03 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi Nikita, On Tue, Feb 24, 2015 at 3:15 AM, Nikita Popov nikita@gmail.com wrote: Voting on the engine exceptions RFC, which proposes to convert existing fatal and recoverable fatal errors into exceptions, has