exception policy for core

From: Date: Wed, 17 Oct 2007 16:09:15 +0000
Subject: exception policy for core
Groups: php.internals 
Request: Send a blank email to internals+get-32833@lists.php.net to get a copy of this message
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

« previous php.internals (#32833) next »