Re: How to know the version of a package ?

From: Date: Mon, 10 Jul 2006 16:15:20 +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-24610@lists.php.net to get a copy of this message
arnaud sellenet bodin a écrit :
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 purpose Thanx
There is another solution : with PEAR_Info PEAR_Info::packageInstalled ( ) For example $boolean = PEAR_Info::packageInstalled('Structure_Datagrid', '0.7.1'); return TRUE if package SDG installed has minimal version 0.7.1, and FALSE otherwise. But to have a stable and compatible solution, we should have PEAR_Info 1.7.0 which is not yet released . I've no news since 2006-06-14 and my last comment on my request #7741 : a patch that should solve errors and allow to get both package installed with PEAR 1.3.x and PEAR 1.4.x regards Laurent

« previous php.pear.general (#24610) next »