RE: [PHP-DEV] exceptions instead of errors

From: Date: Tue, 13 May 2003 08:38:55 +0000
Subject: RE: [PHP-DEV] exceptions instead of errors
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1469@lists.php.net to get a copy of this message
> -----Original Message----- > From: Derick Rethans [mailto:derick@php.net] > Sent: Tuesday, May 13, 2003 12:47 AM > To: Steven Brown > Cc: PHP Developers Mailing List > Subject: RE: [PHP-DEV] exceptions instead of errors > > > On Mon, 12 May 2003, Steven Brown wrote: > > > Why should we have to rewrite all our libraries for php5 > just to use > > them? That seems rather heavy-handed. What's needed is a way to > > recognize code written before PHP threw exceptions on > internals so PHP > > can just simply do the right thing. The '%' prefix on > internals idea > > was one way of doing that. I'd much rather a solution along those > > lines exist than have to rewrite all my code. > > No more magic prefixes, we're not perl. Then pick some other way you like, there're surely several ways to reach the same ends. It's just an example of the kind of thing that would solve that problem without creating new problems. Personally, I'd say use new function names for exception-throwing versions of old functions, or stick exception-throwing wrappers in PEAR.

« previous php.internals (#1469) next »