Re: Re: suggestion for pecl packages
| From: | Hatem Ben Yacoub | Date: | Sat, 25 Sep 2004 18:05:01 +0000 |
| Subject: | Re: Re: suggestion for pecl packages | ||
| References: | 1 2 3 4 5 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1391@lists.php.net to get a copy of this message | ||
> Hatem Ben Yacoub wrote:
>
> > 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 ?
>
> As Andrey said: You can use the Reflection API to get the version number
of
> an extension:
>
> $ext = new ReflectionExtension("tidy');
> echo $ext->getVersion();
Yes I know that, it's PHP5 specific. What about PHP4 ?
Hatem