Re: [PEAR-DEV] Manage PHP version during pecl install

[email protected] (Christian Weiske) Wed, 23 Sep 2015 09:43:31 +0200
Newsgroups php.pear.dev
Message-ID <20150923094331.48d4040a@csystems>
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 =-