Re: exception policy for core
| From: | Marcus Boerger | Date: | Wed, 17 Oct 2007 20:11:45 +0000 |
| Subject: | Re: exception policy for core | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32855@lists.php.net to get a copy of this message | ||
Hello Derick,
right, maybe we need writen down rules easy to read for pecl and core
other then the CODING_STYLES bile.
marcus
Wednesday, October 17, 2007, 7:38:56 PM, you wrote:
> On Wed, 17 Oct 2007, Lukas Kahwe Smith wrote:
>> 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?
> In my opinion, this is still the policy that should be added to the CS.
> regards,
> Derick
> --
> Derick Rethans
> http://derickrethans.nl |
> http://ez.no | http://xdebug.org
Best regards,
Marcus