Re: Studlycaps and MySQLi
| From: | John Coggeshall | Date: | Wed, 24 Mar 2004 07:43:14 +0000 |
| Subject: | Re: Studlycaps and MySQLi | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8735@lists.php.net to get a copy of this message | ||
On Tue, 2004-03-23 at 22:46, Derick Rethans wrote:
> No, we decided on no internal functions throwing exceptions (DOM
> excluded).
So regardless of context, tidy should be doing docref errors? That takes
away a lot from an internal object standpoint. I thought a much better
approach would be to have the error reflect the context -- i.e.
procedural calls would return docref errors, while object calls would
throw exceptions. Unfortunately, since there is no way to determine from
EG() if you are called from an object context or not (based on
conversations with Andi), the implementation is rather nasty.
I don't think anyone can make a strong argument against method calls
throwing exceptions, so isn't there any way this little detail can be
fixed so that all of the internal objects can behave consistently wrt
errors?
John
--
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall http://www.coggeshall.org/
The PHP Developer's Handbook http://www.php-handbook.com/
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-