Re: HTTP_Request2 on pyrus - PEAR_Exception
| From: | Brett Bieber | Date: | Sun, 28 Mar 2010 16:44:47 +0000 |
| Subject: | Re: HTTP_Request2 on pyrus - PEAR_Exception | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53382@lists.php.net to get a copy of this message | ||
On Sun, Mar 28, 2010 at 11:15 AM, Christian Weiske <cweiske@cweiske.de> wrote:
> Today I tried to install HTTP_Request2 with pyrus, which worked fine.
> After using it, I got the error that PEAR_Exception could not be found
> and not loaded. PEAR_Exception is part of PEAR itself (installer v1).
>
> So what do we do now? Should HTTP_Request2 set a dep on PEAR, or should
> we move PEAR_Exception to an own package? I fear that more packages
> depend on PEAR_Exception implicitely.
Well, the missing required dependency should be fixed immediately.
But, for the future:
+1 on moving PEAR_Exception to its own package.
and also, I think PEAR packages could start following the pear2
exception policy [1], albeit adapted without namespaces. So:
<?php
interface HTTP_Request2_Exception{}
class HTTP_Request2_UnexpectedValueException extends
UnexpectedValueException implements HTTP_Request2_Exception {}
throw new HTTP_Request2_UnexpectedValueException();
?>
Any thoughts on that?
[1] http://wiki.php.net/pear/rfc/pear2_exception_policy
--
Brett Bieber