Re: Re: suggestion for pecl packages

From: Date: Sat, 25 Sep 2004 14:21:45 +0000
Subject: Re: Re: suggestion for pecl packages
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1389@lists.php.net to get a copy of this message
The sources contain version info, but not binary. I've given the example of tidy, tidy extension have a function tidy_get_release(); wich return the release date. It could be also the version ? why not ? I know it's not a requirement, but i'm giving a suggestion. phpinfo() print what's giving in the PHP_MINFO_FUNCTION() ... we can just add the version info somewhere ? Hatem ----- Original Message ----- From: "Andrey Hristov" <php@hristov.com> To: "Justin Hannus" <jhannus@128kb.com> Cc: <pecl-dev@lists.php.net>; "Hatem Ben Yacoub" <info@dynamix-tn.com> Sent: Saturday, September 25, 2004 3:10 PM Subject: Re: [PECL-DEV] Re: suggestion for pecl packages > Justin Hannus wrote: > > Hatem Ben Yacoub wrote: > > > >> Wich version of a PECL package am I running ? no idea ! If I want to > >> update, i have to download the latest version from the website, even > >> if I got already the last one. > >> I think It will be better to add version info inside the package itself. > >> Example for tidy, just adding a function tidy_version() or > >> tidy_pecl_version() ... coz i'm not sure if some packages are already > >> using _version() > >> It will be useful if tomorrow we can add a client interface to get the > >> latest stable pecl packages. > >> > >> Best Regards, > >> Hatem > > > > > > I'm not exactly sure what you mean--all pecl packages contain version > > info. In fact the package itself is named acording to the release. i.e > > PackageName-1.0.tgz. If you need to update a package you can use `pear > > install PackageName' or better yet `pear update PackageName'. > > > > Some extensions define an *_version() function so you can > > programatically check but its not a requirement. You can also see what > > version info comes along with the phpinfo() function under that > > extensions info table. > > > AFAIK the ReflectionAPI als works with extensions and can get the version > number which is defined there. But usually this number is not changed often... > > Andrey > >

« previous php.pecl.dev (#1389) next »