Re: PEAR.php to PHP5

From: Date: Sat, 19 Jun 2004 13:27:19 +0000
Subject: Re: PEAR.php to PHP5
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30927@lists.php.net to get a copy of this message
> This is not an Error competition, we just need something compatible with > PHP5 while still usefull for existing code which uses PEAR.php and > PEAR::raiseError(). Neither current PEAR.php nor ErrorStack.php are > valid for that. I didn't take it as a competition :) ErrorStack is forward compatible with php5. Haven't test it yet but it is designed that way (from what I've read from Greg's posts). > Btw, you'll stick with ErrorStack, without knowing it too much, what > does it provide that you can't do with the code I've sent? I prefer the way it manages the stack independently from returns. for example if a method is supposed to return a boolean I prefer to keep it that way instead of returning a PEAR_Error. It will be faster because it doesn't instantiate a class. Greg would surely talk about it better than me since my experience with errostack is both recent and limited. Arnaud. > > Tomas V.V.Cox > > > > >>Hi, > >> > >>Was played this night on how to get the PEAR base class revamped to be > >>php5 compliant and btw making it easier to use, more flexible, > >>exceptions, etc. without loosing the automatic error handling or needing > >>to touch any line of most pear classes. > >> > >>Take a look at the examples at the bottom, > >> > >> > >>Tomas V.V.Cox > >> > >>PS.- Will the attach be stripped? Let's see :) > >> > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pear.dev (#30927) next »