Re: cvs: php4 /pear/PEAR Dependency.php
| From: | Tomas V.V.Cox | Date: | Tue, 11 Dec 2001 12:52:08 +0000 |
| Subject: | Re: cvs: php4 /pear/PEAR Dependency.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-1508@lists.php.net to get a copy of this message | ||
Stig Bakken wrote:
>
> ssb Mon Dec 10 11:59:17 2001 EDT
>
> Modified files:
> /php4/pear/PEAR Dependency.php
> Log:
> * renamed check methods to checkXxx
> * completed the extension check method
> * added checks for os, php version, programs and sapi backend
great :-)
>
> Index: php4/pear/PEAR/Dependency.php
> + if (substr($relation, 0, 2) == 'v.') {
> + $operator = substr($relation, 2);
> + return version_compare($req_ver, $pkg_ver, $operator);
> }
Don't you prefer to use simply the compare operator instead of "v.xx"?
(IMO "v.xx" is not so understable/imaginable). btw, Stig if you agree
with my addition to your dependencies RFC I could add the dep stuff to
infoFromDescFile()/PEAR_Installer, if you aren't doing it.
> + function checkExtension($name, $req_ver = null, $relation = 'has')
> {
> + // XXX (ssb): could we avoid loading the extension here?
// XXX (cox): if phpversion($name) don't need to have the
// extension loaded to get the version of it yes.
// You implemented the extension version stuff :)
Tomas V.V.Cox