Re: cvs: pear /Archive_Tar Tar.php
| From: | Tomas V.V.Cox | Date: | Thu, 11 Oct 2001 17:09:20 +0000 |
| Subject: | Re: cvs: pear /Archive_Tar Tar.php | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2252@lists.php.net to get a copy of this message | ||
On Thursday 11 October 2001 18:00, Jon Parise wrote:
> On Thu, Oct 11, 2001 at 11:42:16AM -0000, Thomas V.V.Cox wrote:
> > cox Thu Oct 11 07:42:16 2001 EDT
> >
> > Modified files:
> > /pear/Archive_Tar Tar.php
> > Log:
> > assert zlib extension support or die
>
> [snip]
>
> Over in Horde-land, we have a little static function to handle
> these kinds of prerequisite checks:
>
> Perhaps something similar should be added to the PEAR class as a
> static method. That would keep the test in a common place so
> that each PEAR package wouldn't have to duplicate the functionality.
Sure, I mostly cuted & pasted the DB::assertExtension() method, and
yesis silly to have the same repeated everywhere. But this and other
things related to dependencies (this is a run-time dependency) needs to
be discussed/implemented yet, or someone has started yet the effort? :-)
I remember now, at least we have both php version comparing code in C
(the Stig version_compare() php func for php 4.0.8) and in PHP (my
PEAR::phpVersionIS()).
Tomas V.V.Cox