(Fwd) [PEAR-DEV] PHP5Beta4: Pear Error class and throwing exce
| From: | Stefan Neufeind | Date: | Sun, 22 Feb 2004 19:42:59 +0000 |
| Subject: | (Fwd) [PEAR-DEV] PHP5Beta4: Pear Error class and throwing exce | ||
| Groups: | php.pear.qa | ||
| Request: | Send a blank email to pear-qa+get-627@lists.php.net to get a copy of this message | ||
What might be a possible solution? Deriving Pear_Error from that base-
class if PHP5 is used? Or would the error-handling be re-arranged
completely? Though I haven't yet worked with PHP5 this might be quite
a big problem if I got it right ...
Maybe having the PEAR-package include php-version-specific versions
of the PEAR-error-class might be a solution?
Regards,
Stefan
------- Forwarded message follows -------
To: pear-dev@lists.php.net
Date sent: Sun, 22 Feb 2004 20:06:25 +0100
From: Erik Franzén <erik@nordicaudi.com>
Subject: [PEAR-DEV] PHP5Beta4: Pear Error class and throwing exceptions
[ Double-click this line for list subscription options ]
From PHP5beta4 it is not longer possible to throw a PEAR_Error
object
as an exception since PHP5 will trigger an error saying that
exceptions must be valid objects that are derived from the built in
class exception.
This means that the PEAR_Error class cannot any longer be thrown as
an
exception since it is not derived from the built in exception class
in
PHP5.
Any comments on this?
/Erik
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
------- End of forwarded message -------