RE: [PECL-DEV] Question regarding packaging for PHP7
| From: | Anatol Belski | Date: | Sun, 15 Nov 2015 12:44:17 +0000 |
| Subject: | RE: [PECL-DEV] Question regarding packaging for PHP7 | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-13318@lists.php.net to get a copy of this message | ||
Hi Ruslan,
> -----Original Message-----
> From: Ruslan Osmanov [mailto:rrosmanov@gmail.com]
> Sent: Sunday, November 15, 2015 11:30 AM
> To: PECL Developers <pecl-dev@lists.php.net>
> Subject: [PECL-DEV] Question regarding packaging for PHP7
>
> Hi,
>
> how do I package a PHP7 extension?
>
> Say, we have an extension with PHP5+ support with version 1.0.0. Since
> PHP7 internal API is not backwards compatible, we're re-writing the code
in a
> branch. We bump its version to 2.0.0. Now what happens, if we upload the
PHP7
> version to PECL? A PHP6 user will be unable to build it. He won't be able
to
> upgrade the extension either.
>
> The only thing I can do is to specify minimum PHP version in package.xml.
Is it
> enough?
>
Yeah, if you have a separate PHP7 source, you should the min version in
package.xml . Another possibility could be to keep the ext version same and
choose a separate source file from config.m4 (given it's no diff to user
land), see what Remi did for ext/zip.
Regards
Anatol