Hi Ruslan, > -----Original Message----- > From: Ruslan Osmanov [mailto:rrosma...@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 -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php