Re: How to know the version of a package ?
| From: | Lukas Smith | Date: | Mon, 10 Jul 2006 07:23:47 +0000 |
| Subject: | Re: How to know the version of a package ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24603@lists.php.net to get a copy of this message | ||
arnaud sellenet bodin wrote:
Hi everybody. I'd like to make some of my tools built around Structures_DataGrid compatible with the new release, while keeping backward compatibility. So I have to check somewhere in my code which version of SDG is running. Is there a pear php extension that can do that (return the version of a package) I checked in the documentation for PEAR::Info, PEAR::PackageFileManager, PEAR::PackageUpdate, PHP_Compat but did not find anything that could achieve that purposeThe only way is if you used the pear installer. In which case you can get the information using "pear list" and "pear list [packagename]". regards, Lukas