Re: Manage PHP version during pecl install
| From: | Christian Weiske | Date: | Wed, 23 Sep 2015 07:43:31 +0000 |
| Subject: | Re: Manage PHP version during pecl install | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-55466@lists.php.net to get a copy of this message | ||
Hi all,
>> With upcoming PHP 7 some extension maintainers have choose to
>> maintain 2 different version, one for PHP 5, another for PHP 7
>>
>> Digging a little in the PEAR code, I think it will be nice to check
>> extension PHP minimal version against current PHP version.
>>
>> But, IIUC, this will require to extend the REST schema (1.4 ?) to
>> include this information.
>
> I had similar thoughts in february this year; see
> https://pear.php.net/bugs/bug.php?id=20507
I just saw that allreleases2.xml (introduced with REST 1.3[1]) contains
the minimum version information, e.g.
http://pear.php.net/rest/r/console_getopt/allreleases2.xml
<r><m>5.4.0</m></r>
So there is no need to extend the REST schema, just adjust PEAR to take
it into account.
BUT pecl doesn't support[2] REST 1.2 nor REST 1.3, so that would have to
be done.
[1] http://pear.php.net/manual/en/core.rest.php
[2] https://pecl.php.net/channel.xml
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-