Re: Re: suggestion for pecl packages

From: Date: Mon, 27 Sep 2004 22:42:29 +0000
Subject: Re: Re: suggestion for pecl packages
References: 1 2 3 4 5 6 7  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1401@lists.php.net to get a copy of this message
Sara Golemon wrote:
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 ?
I'm bundling up a runkit extension as we speak, I can throw in a runkit_ext_version() function while I'm at it (which will allow access to the version ID of other extensions too). Since my goal for the extension as a whole is compatability back to 4.0.0 this should cover your need. -Sara (Who meant to have it published yesterday but it just keeps growing) I think that full compatibility back to 4.0.0 will be kind of impossible or? :)
Many extensions has this #if ZEND_MODULE_API_NO >= 20010901 "0.1", /* Replace with version number for your extension */ #endif The ZEND_MODULE_API_NO is after the release of 4.0.0 thus not every module will give you back this info. And unfortunately in most cases devs usually don't change this version :/ Andrey

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